mirror of
https://github.com/borgbackup/borg.git
synced 2025-02-21 13:47:16 +00:00
fuse: getxattr fail must use errno.ENOATTR, fixes #1126
The problem was that OS X Finder queried some OS X specific xattrs and if they were not present, the wrong errno (ENODATA) was included in the raised FUSEError exception. According to the llfuse docs, the errno must be ENOATTR for this case. Obviously, Finder didn't handle this well and denied access to the file. Also, file size was displayed as "zero bytes" although we return the correct value.
This commit is contained in:
parent
6987b8b3cd
commit
4d7b0f357a
1 changed files with 1 additions and 1 deletions
|
@ -194,7 +194,7 @@ def getxattr(self, inode, name, ctx=None):
|
|||
try:
|
||||
return item.get(b'xattrs', {})[name]
|
||||
except KeyError:
|
||||
raise llfuse.FUSEError(errno.ENODATA) from None
|
||||
raise llfuse.FUSEError(errno.ENOATTR) from None
|
||||
|
||||
def _load_pending_archive(self, inode):
|
||||
# Check if this is an archive we need to load
|
||||
|
|
Loading…
Reference in a new issue