sudo (1.6.8p12-4ubuntu5) edgy; urgency=low
.
* auth/pam.c:
- Abort immediately if the user presses ^C at the password prompt instead
of waiting three seconds. There is no information to be gained from
doing that, and it's just annoying if one accidentally uses sudo for
Simple patch, will consider for edgy.
** Changed in: sudo (Ubuntu)
Assignee: (unassigned) = Martin Pitt
Status: Confirmed = In Progress
--
On Ctrl-C, sudo should exit immediately
https://launchpad.net/bugs/38810
--
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
My patch was accepted to sudo CVS. It would be nice if it could go into
Edgy too.
--
On Ctrl-C, sudo should exit immediately
https://launchpad.net/bugs/38810
--
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
tgetpass properly returns if the user actually typed the empty
password and NULL if the user hit ^C, but sudo_conv in auth/pam.c does
not distinguish between these return values. Here is a simple patch to
correct this by returning PAM_CONV_ERR on NULL, causing a quick abort
with an error.