Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Broken elf header incorrectly identified as missing file



On zsh 5.9 (x86_64-ubuntu-linux-gnu)

To reproduce:
1. Create a malformed elf binary by deleting everything past part way through the file (a broken binary that triggers the bug is attached)
2. Make the binary executable
3. Attempt to run the binary with ./b.out
4. Observe that the file is incorrectly identified as not existing, when the actual issue is a broken elf header

Bash returns the correct error message, but several other shells return the same wrong error.

Attachment: b.out
Description: Binary data



Messages sorted by: Reverse Date, Date, Thread, Author