]> arthur.barton.de Git - bup.git/commitdiff
Guard posxi1e has_extended with HAS_EXTENDED_CHECK
authorRob Browning <rlb@defaultvalue.org>
Sun, 27 Dec 2015 17:23:37 +0000 (11:23 -0600)
committerRob Browning <rlb@defaultvalue.org>
Sun, 27 Dec 2015 17:38:05 +0000 (11:38 -0600)
Thanks to James Lott for reporting the issue (seen on FreeBSD) and
suggesting the fix.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
lib/bup/metadata.py

index 9c6d46a987516f3522df5896bb64b156959215c1..b981817d8579c4d67824a7e531051c10405ff3e3 100644 (file)
@@ -486,7 +486,8 @@ class Metadata:
     # The numeric/text distinction only matters when reading/restoring
     # a stored record.
     def _add_posix1e_acl(self, path, st):
-        if not posix1e: return
+        if not posix1e or not posix1e.HAS_EXTENDED_CHECK:
+            return
         if not stat.S_ISLNK(st.st_mode):
             acls = None
             def_acls = None