Using exec on a non-supported binary format shows "Success"

Bug #1594338 reported by Removed by request
6
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@ubuntu:~$ exec '/wine/drive_c/Program Files (x86)/Steam/Steam.exe'
bash: /wine/drive_c/Program Files (x86)/Steam/Steam.exe: cannot execute binary file: Exec format error
bash: /wine/drive_c/Program Files (x86)/Steam/Steam.exe: Success

Revision history for this message
Removed by request (removed3425744) wrote :

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'
bash: /wine/drive_c/Program Files (x86)/Steam/Steam.exe: Permission denied
bash: exec: /wine/drive_c/Program Files (x86)/Steam/Steam.exe: cannot execute: Permission denied

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.