aboutsummaryrefslogtreecommitdiffstats
path: root/fusearchive.py
diff options
context:
space:
mode:
Diffstat (limited to 'fusearchive.py')
-rwxr-xr-xfusearchive.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/fusearchive.py b/fusearchive.py
index 624cc3c..13e0ab7 100755
--- a/fusearchive.py
+++ b/fusearchive.py
@@ -13,6 +13,13 @@ import FuseArchive
enable_stats = False
enable_psyco = False
+# Redefine the timespec class so that fuse doesn't break when rsync does a
+# utimens call
+def junkutimens(self, *whatever, **whatevermore):
+ self.tv_sec = None
+ self.tv_nsec = None
+fuse.Timespec.__init__ = junkutimens
+
if enable_psyco:
# Import Psyco if available
try: