summaryrefslogtreecommitdiff
path: root/fuse.py
diff options
context:
space:
mode:
authorTerence Honles <terence@honles.com>2016-03-06 23:12:04 -0800
committerTerence Honles <terence@honles.com>2016-03-06 23:12:52 -0800
commit0c3a6e5b7ad5dc642c575f1982260798ad16301a (patch)
tree3893780d0c72ea0dd4f549b6ed19c6795036e274 /fuse.py
parentaf9ebc56a9846350bc5ad64ea54275047627a834 (diff)
parentc95ca3913eccf360207bbfc69bd52a91fc77197f (diff)
downloadfusepy-0c3a6e5b7ad5dc642c575f1982260798ad16301a.tar.gz
Merge remote-tracking branch 'nickcoutsos/patch-1'
Diffstat (limited to 'fuse.py')
-rw-r--r--fuse.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/fuse.py b/fuse.py
index 959aa85..cae7efc 100644
--- a/fuse.py
+++ b/fuse.py
@@ -636,7 +636,9 @@ class FUSE(object):
def listxattr(self, path, namebuf, size):
attrs = self.operations('listxattr', path.decode(self.encoding)) or ''
- ret = '\x00'.join(attrs).encode(self.encoding) + '\x00'
+ ret = '\x00'.join(attrs).encode(self.encoding)
+ if len(ret) > 0:
+ ret += '\x00'.encode(self.encoding)
retsize = len(ret)
# allow size queries