Re: No error message if reading password fails
"Todd C. Miller" <[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. I don't know what emacs actually does with when you use: (setq compilation-disable-input t) but if it just opens /dev/null and points stdin to that then sudo should not report an error. If, on the other hand, stdin is closed, it makes sense for sudo to print an error if it can. - todd ____________________________________________________________ sudo-users mailing list <[email protected]> For list information, options, or to unsubscribe, visit: https://www.sudo.ws/mailman/listinfo/sudo-users