|
Bugzilla – Full Text Bug Listing |
| Summary: | visudo -s with unused alias causes segfault | ||
|---|---|---|---|
| Product: | Sudo | Reporter: | David.Wood |
| Component: | Visudo | Assignee: | Todd C. Miller <Todd.Miller> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | low | ||
| Version: | 1.7.2 | ||
| Hardware: | All | ||
| OS: | All | ||
| Attachments: | visudo.c patch | ||
This is already fixed in the sudo mercurial repo and will be part of the next sudo release. |
Created attachment 270 [details] visudo.c patch % cat /tmp/sudoers User_Alias FOO=joeuser % visudo -scf /tmp/sudoers visudo: Error: unused User_Alias FOO zsh: segmentation fault (core dumped) visudo -scf /tmp/sudoers After applying the attached patch: % ./visudo -scf /tmp/sudoers visudo: Error: unused User_Alias FOO /tmp/sudoers: parse error /tmp/sudoers: wrong owner (uid, gid) should be (0, 0) /tmp/sudoers: bad permissions, should be mode 0440 % echo $? 1