mirror of
https://github.com/borgbackup/borg.git
synced 2026-04-23 07:07:52 -04:00
NetBSD: xattr.get_all: catch also errno.EOPNOTSUPP
This commit is contained in:
parent
0286fb6dc4
commit
bcf3316308
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue