sudo ignores child return code

Radovan Sroka <[email protected]>
Newsgroups gmane.comp.tools.sudo.devel
Message-ID <[email protected]>
Hi Todd,

I found regression in sudo behavior, It's reproducible on recent sudo-1.8.18b2.

When you have a script which refers to non existing interpreter like:

$ cat test.sh
#/bin/asdsadsa
#useless script

$ chmod u+x test.sh

Sudo executes this command and it should fail.

$ sudo ./test.sh

But Sudo returns 0.

---------------------------------------------------------

Radovan Sroka
Security Technologies | Red hat, Inc.

____________________________________________________________
sudo-workers mailing list <[email protected]>
For list information, options, or to unsubscribe, visit:
https://www.sudo.ws/mailman/listinfo/sudo-workers
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.