Pārlūkot izejas kodu

NetBSD: xattr.get_all: catch also errno.EOPNOTSUPP

Thomas Waldmann 4 nedēļas atpakaļ
vecāks
revīzija
bcf3316308
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      src/borg/xattr.py

+ 1 - 1
src/borg/xattr.py

@@ -86,7 +86,7 @@ def get_all(path, follow_symlinks=False):
                     # EINVAL: maybe xattr name is invalid or other issue, #6988
                     logger.warning("When getting extended attribute %s: %s", name.decode(errors="replace"), str(e))
     except OSError as e:
-        if e.errno in (errno.ENOTSUP, errno.EPERM):
+        if e.errno in (errno.ENOTSUP, errno.EOPNOTSUPP, errno.EPERM):
             # if xattrs are not supported on the filesystem, we give up.
             # EPERM might be raised by listxattr.
             pass