0x09 / hfsfuse

FUSE driver for HFS+ filesystems
Other
77 stars 13 forks source link

Fix st_mode when using default values #26

Closed phcoder closed 1 year ago

phcoder commented 1 year ago

st_mode may be empty on e.g. on Inherit the Earth demo dmg root st_mode ends up being 0 on root which results in I/O error down the line when listing root directory.

According to TN we need to fill st_mode, st_uid and st_gid with sane values ourselves in this case.

0x09 commented 1 year ago

Thanks for adding this and thanks for bringing it up originally! I'll see if hfsfuse can support some of the weirder things that the macOS driver does for these kinds of files around UID substitution/permissions too now that I know about them.