From 2cdddf686dc399714103b4a5157eaec14d12a149 Mon Sep 17 00:00:00 2001 From: Rob Browning Date: Sun, 27 Dec 2015 11:23:37 -0600 Subject: [PATCH] Guard posxi1e has_extended with HAS_EXTENDED_CHECK Thanks to James Lott for reporting the issue (seen on FreeBSD) and suggesting the fix. Signed-off-by: Rob Browning Tested-by: Rob Browning --- lib/bup/metadata.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/bup/metadata.py b/lib/bup/metadata.py index 9c6d46a..b981817 100644 --- a/lib/bup/metadata.py +++ b/lib/bup/metadata.py @@ -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 -- 2.39.2