From: Rob Browning Date: Mon, 14 Mar 2011 01:37:56 +0000 (-0500) Subject: Don't accidentally pass atime/ctime/mtime through from_stat_time() twice. X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=5cd068c1bf2827af129860bf2aebae495c81ede7;p=packages%2Fb%2Fbup.git Don't accidentally pass atime/ctime/mtime through from_stat_time() twice. Don't accidentally pass atime/ctime/mtime through FSTime.from_stat_time() twice in the xstat stat_result.from_stat_rep() static method when _have_ns_fs_timestamps is false. Signed-off-by: Rob Browning --- diff --git a/lib/bup/xstat.py b/lib/bup/xstat.py index 374954a..d279b93 100644 --- a/lib/bup/xstat.py +++ b/lib/bup/xstat.py @@ -114,9 +114,9 @@ class stat_result(): result.st_gid = st.st_gid result.st_rdev = st.st_rdev result.st_size = st.st_size - atime = FSTime.from_stat_time(st.st_atime) - mtime = FSTime.from_stat_time(st.st_mtime) - ctime = FSTime.from_stat_time(st.st_ctime) + atime = st.st_atime + mtime = st.st_mtime + ctime = st.st_ctime result.st_atime = FSTime.from_stat_time(atime) result.st_mtime = FSTime.from_stat_time(mtime) result.st_ctime = FSTime.from_stat_time(ctime)