diff options
author | Terence Honles <terence@honles.com> | 2016-03-06 23:12:04 -0800 |
---|---|---|
committer | Terence Honles <terence@honles.com> | 2016-03-06 23:12:52 -0800 |
commit | 0c3a6e5b7ad5dc642c575f1982260798ad16301a (patch) | |
tree | 3893780d0c72ea0dd4f549b6ed19c6795036e274 | |
parent | af9ebc56a9846350bc5ad64ea54275047627a834 (diff) | |
parent | c95ca3913eccf360207bbfc69bd52a91fc77197f (diff) | |
download | fusepy-0c3a6e5b7ad5dc642c575f1982260798ad16301a.tar.gz |
Merge remote-tracking branch 'nickcoutsos/patch-1'
-rw-r--r-- | fuse.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |