archivefs icon indicating copy to clipboard operation
archivefs copied to clipboard

Files in mounted archive detected as executable with the test command

Open Firefly7-7 opened this issue 6 months ago • 1 comments

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.

Firefly7-7 avatar May 29 '25 03:05 Firefly7-7

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.

bugnano avatar Jun 05 '25 06:06 bugnano