[sudo-workers] sudo ignores child return code
Todd C. Miller
Todd.Miller at courtesan.com
Wed Aug 31 08:43:39 MDT 2016
On Wed, 31 Aug 2016 07:34:50 -0400, Radovan Sroka wrote:
> > $ sudo ./test.sh
> > sudo: unable to execute ./test.sh: No such file or directory
> > this is because execve(2) returns ENOENT for a missing interpreter,
> > not ENOEXEC.
> Yes, but sudo also returns 0.
OK, that is a real bug :-)
Fixed in https://www.sudo.ws/repos/sudo/rev/95eae2d60292
$ sudo ./test.sh
sudo: unable to execute ./test.sh: No such file or directory
$ echo $?
More information about the sudo-workers