From 0942bc010eb80b56550240b461873803f73dd615 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Mon, 26 Oct 2015 01:43:58 +0100 Subject: [PATCH] fix reading files without touching their atime --- borg/archive.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/borg/archive.py b/borg/archive.py index c01fbeaa9..9b060ffe3 100644 --- a/borg/archive.py +++ b/borg/archive.py @@ -540,7 +540,7 @@ Number of files: {0.stats.nfiles}'''.format(self) @staticmethod def _open_rb(path, st): 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 def open_simple(p, s):