Re: No error message if reading password fails
"R. Diez via sudo-users" <[email protected]>
| Newsgroups | gmane.comp.tools.sudo.user |
|---|---|
| Message-ID | <[email protected]> |
> Note that reading from /dev/null does not produce an error, it just > returns end of file. So for: > > rdiez@UbuntuMate:~$ sudo -S -- ls </dev/null > > sudo is doing the expected thing. This is the same as what would > happen if you entered control-D at the password prompt. > [...] What is the "expected thing" in this scenario then? Is it documented or expected that an "end of file" condition makes sudo quit without an error message and without trying to run the command the user specified? I would argue otherwise. rdiez ____________________________________________________________ sudo-users mailing list <[email protected]> For list information, options, or to unsubscribe, visit: https://www.sudo.ws/mailman/listinfo/sudo-users