Re: sudo ignores child return code
"Todd C. Miller" <[email protected]>
| Newsgroups | gmane.comp.tools.sudo.devel |
|---|---|
| Message-ID | <[email protected]> |
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 $? 1 - todd ____________________________________________________________ sudo-workers mailing list <[email protected]> For list information, options, or to unsubscribe, visit: https://www.sudo.ws/mailman/listinfo/sudo-workers