cybernoid / archivemount

A fuse filesystem for mounting archives in formats supported by libarchive.
Other
184 stars 19 forks source link

Add support for /dev/fd/%u mountpoints #20

Open nigeltao opened 3 years ago

nigeltao commented 3 years ago

The motivation follows libfuse's "Allow passing /dev/fuse file descriptor from parent process" 2018 commit: https://github.com/libfuse/libfuse/commit/64e11073b9347fcf9c6d1eea143763ba9e946f70

Also remove a superfluous archive_entry_set_mode call that was (1) mistakenly passing st_mtime instead of st_mode and (2) immediately overwritten by a subsequent archive_entry_set_mode call. That superfluous call / typo was introduced in 2006 by commit 5bd0d35ef8035edd0faefc018108c79c4950c025. It presumably never did anything noticable, so we remove it instead of trying to fix it.