|
Bugzilla – Full Text Bug Listing |
| Summary: | sudo does not abort askpass loop even if askpass program returns false | ||
|---|---|---|---|
| Product: | Sudo | Reporter: | astrand |
| Component: | Sudo | Assignee: | Todd C. Miller <Todd.Miller> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | low | ||
| Version: | 1.7.4 | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Attachments: | Patch to treat the askpass cancel button like ^C | ||
|
Description
astrand
2012-03-27 05:44:22 MDT
Created attachment 337 [details]
Patch to treat the askpass cancel button like ^C
The attached patch will cause the cancel button in the askpass program to be treated by the PAM conversation function like the user had entered control-C at the password prompt.
Did a quick try with sudo-1.7.9, seems to work. As I understand it, this patch triggers EINTR if the output from the askpass program is empty. Thus the return code isn't used? Good enough for me; I suppose there's no need for sudo to handle zero length passwords? A zero length password would show up as a newline from the askpass program so I don't think that is an issue. |