Skip to content

Commit 1176c01

Browse files
committed
fix(yaffs): decided to only set timestamps, not ownership/permissions.
Setting permissions and ownerships leads to issues down the road when trying to create files in directories we're not allowed to open.
1 parent 6dfd86c commit 1176c01

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

unblob/handlers/filesystem/yaffs.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -551,9 +551,7 @@ def extract_entry(self, entry: YAFFSEntry, outdir: Path): # noqa: C901
551551
)
552552
return
553553
src_path.link_to(out_path)
554-
# out_path.chmod(entry.st_mode)
555-
# os.utime(out_path.as_posix(),(entry.st_atime,entry.st_mtime))
556-
# os.chown(out_path.as_posix(), entry.st_uid, entry.st_gid)
554+
os.utime(out_path.as_posix(), (entry.st_atime, entry.st_mtime))
557555

558556

559557
class YAFFS2Parser(YAFFSParser):

0 commit comments

Comments
 (0)