diff options
-rw-r--r-- | obnamlib/plugins/fuse_plugin.py | 5 | ||||
-rw-r--r-- | test-gpghome/random_seed | bin | 600 -> 600 bytes |
2 files changed, 5 insertions, 0 deletions
diff --git a/obnamlib/plugins/fuse_plugin.py b/obnamlib/plugins/fuse_plugin.py index b2048c83..26e342b2 100644 --- a/obnamlib/plugins/fuse_plugin.py +++ b/obnamlib/plugins/fuse_plugin.py @@ -240,6 +240,11 @@ class ObnamFuse(fuse.Fuse): self.metadatacache.clear() metadata = self.obnam.repo.get_metadata(*self.get_gen_path(path)) self.metadatacache[path] = metadata + # FUSE does not allow negative timestamps, truncate to zero + if metadata.st_atime_sec < 0: + metadata.st_atime_sec = 0 + if metadata.st_mtime_sec < 0: + metadata.st_mtime_sec = 0 return metadata def get_stat(self, path): diff --git a/test-gpghome/random_seed b/test-gpghome/random_seed Binary files differindex 260a2936..f74c2537 100644 --- a/test-gpghome/random_seed +++ b/test-gpghome/random_seed |