diff options
| -rw-r--r-- | xlators/features/marker/utils/syncdaemon/libcxattr.py | 9 | 
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 907a16c7802..fdc016c47ce 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) - - -  | 
