Fix bug in tree_parse_one

This commit is contained in:
Nathan McRae 2024-07-07 10:28:34 -07:00
parent 344119c099
commit b1df1875c7

View File

@ -472,7 +472,7 @@ def tree_parse_one(raw, start=0):
mode = raw[start:x] mode = raw[start:x]
if len(mode) == 5: if len(mode) == 5:
# Normalize to six bytes. # Normalize to six bytes.
mode = b" " + mode mode = b"0" + mode
# Find the NULL terminator of the path # Find the NULL terminator of the path
y = raw.find(b'\x00', x) y = raw.find(b'\x00', x)