archivefs
archivefs copied to clipboard
Files in mounted archive detected as executable with the test command
Arch Linux, installed from the AUR. v1.0.1-2 (up-to-date)
To replicate: mount an archive with at least one file (this has happened with tar and zip archives, but I haven't tested others). I don't specify any options, just archive and mountpoint. run test -x <file> && echo "executable" || echo "not executable" on a file in the repository. For all files I have tested for, this prints out "executable".
Has this issue with the sh, bash, and fish shells. The man page for sh and bash say that -x will be true if the user has execute or search access, but fish just says if the user has execute access.
I acknowledge that test -x always returns true for all files in the mounted archive.
Unfortunately I don't have the time to fix this problem. If you want to send a PR with the fix, I'll be happy to merge it.