浏览代码

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

fuse: getxattr fail must use errno.ENOATTR, fixes #1126
TW 9 年之前
父节点
当前提交
694db399c8
共有 1 个文件被更改,包括 1 次插入1 次删除
  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