Explorar o código

Merge pull request #1277 from ThomasWaldmann/fuse-xattr-errcode

fuse: getxattr fail must use errno.ENOATTR, fixes #1126
TW %!s(int64=9) %!d(string=hai) anos
pai
achega
694db399c8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      borg/fuse.py

+ 1 - 1
borg/fuse.py

@@ -194,7 +194,7 @@ class FuseOperations(llfuse.Operations):
         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