Fix bug in tree_parse_one
This commit is contained in:
parent
344119c099
commit
b1df1875c7
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user