Forráskód Böngészése

fix reading files without touching their atime

Thomas Waldmann 9 éve
szülő
commit
0942bc010e
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      borg/archive.py

+ 1 - 1
borg/archive.py

@@ -540,7 +540,7 @@ Number of files: {0.stats.nfiles}'''.format(self)
     @staticmethod
     @staticmethod
     def _open_rb(path, st):
     def _open_rb(path, st):
         flags_normal = os.O_RDONLY | getattr(os, 'O_BINARY', 0)
         flags_normal = os.O_RDONLY | getattr(os, 'O_BINARY', 0)
-        flags_noatime = flags_normal | getattr(os, 'NO_ATIME', 0)
+        flags_noatime = flags_normal | getattr(os, 'O_NOATIME', 0)
         euid = None
         euid = None
 
 
         def open_simple(p, s):
         def open_simple(p, s):