Using exec on a non-supported binary format shows "Success"
Bug #1594338 reported by
Removed by request
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
bash (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
I'm using Ubuntu 16.10 dev with bash 4.3-14ubuntu2 and on using exec on a non-supported binary format I'm getting the output "Success" while the file couldn't be executed like in this example:
sworddragon@
bash: /wine/drive_
bash: /wine/drive_
To post a comment you must log in.
I also noticed if the binary format is registered but the file has no executable permissions I'm getting 2 times the output "Permission denied":
sworddragon@ ubuntu: ~$ exec '/wine/ drive_c/ Program Files (x86)/Steam/ Steam.exe' c/Program Files (x86)/Steam/ Steam.exe: Permission denied c/Program Files (x86)/Steam/ Steam.exe: cannot execute: Permission denied
bash: /wine/drive_
bash: exec: /wine/drive_