summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn-Mark Gurney <jmg@funkthat.com>2017-03-31 01:10:04 -0700
committerJohn-Mark Gurney <jmg@funkthat.com>2017-03-31 01:10:04 -0700
commitea976f8b4cf56c5024f19ac94413cfc4e4849d99 (patch)
treea3f06295c824e2debd1c964f6b26bb3dd1e49e31
parenteee2186b7ef2c3020a75ccfacde4d2b348b12bcd (diff)
downloadxattr-ea976f8b4cf56c5024f19ac94413cfc4e4849d99.tar.gz
add fix for issue w/ lsattr and long attrs..
-rw-r--r--xattr/lib_build.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/xattr/lib_build.py b/xattr/lib_build.py
index 0c13ef3..f791881 100644
--- a/xattr/lib_build.py
+++ b/xattr/lib_build.py
@@ -60,7 +60,7 @@ static void convert_bsd_list(char *namebuf, size_t size)
{
size_t offset = 0;
while(offset < size) {
- int length = (int) namebuf[offset];
+ int length = (int) (unsigned char)namebuf[offset];
memmove(namebuf+offset, namebuf+offset+1, length);
namebuf[offset+length] = '\\0';
offset += length+1;