summaryrefslogtreecommitdiffstats
path: root/xlators/features
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/features')
-rw-r--r--xlators/features/marker/utils/syncdaemon/libcxattr.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/xlators/features/marker/utils/syncdaemon/libcxattr.py b/xlators/features/marker/utils/syncdaemon/libcxattr.py
index 907a16c78..fdc016c47 100644
--- a/xlators/features/marker/utils/syncdaemon/libcxattr.py
+++ b/xlators/features/marker/utils/syncdaemon/libcxattr.py
@@ -55,9 +55,8 @@ class Xattr(object):
@classmethod
def llistxattr_buf(cls, path):
size = cls.llistxattr(path)
- if size == -1:
- raise_oserr()
+ if size == -1:
+ cls.raise_oserr()
+ if size == 0:
+ return []
return cls.llistxattr(path, size)
-
-
-