]> arthur.barton.de Git - bup.git/commitdiff
Don't accidentally pass atime/ctime/mtime through from_stat_time() twice.
authorRob Browning <rlb@defaultvalue.org>
Mon, 14 Mar 2011 01:37:56 +0000 (20:37 -0500)
committerAvery Pennarun <apenwarr@gmail.com>
Sun, 20 Mar 2011 07:43:32 +0000 (00:43 -0700)
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 <rlb@defaultvalue.org>
lib/bup/xstat.py

index 374954ab0f735058062659d4f75074a276aa8863..d279b932be08b11c08e883b856599caad43fb6d1 100644 (file)
@@ -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)