diff --git a/libwyag.py b/libwyag.py index 7721d0c..37593bd 100644 --- a/libwyag.py +++ b/libwyag.py @@ -472,7 +472,7 @@ def tree_parse_one(raw, start=0): mode = raw[start:x] if len(mode) == 5: # Normalize to six bytes. - mode = b" " + mode + mode = b"0" + mode # Find the NULL terminator of the path y = raw.find(b'\x00', x)