Bug 479 - sudo -v always return 1
sudo -v always return 1
Status: RESOLVED FIXED
Product: Sudo
Classification: Unclassified
Component: Sudoers
1.8.0
PC Linux
: low normal
Assigned To: Todd C. Miller
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-03-06 10:19 MST by tuxce.net
Modified: 2011-04-11 08:03 MDT (History)
0 users

See Also:


Attachments
Fix exit value of "sudo -v" in sudoers module. (646 bytes, application/octet-stream)
2011-03-06 10:19 MST, tuxce.net
Details
Exit value fix for "sudo -v" and "sudo -l" (461 bytes, patch)
2011-03-06 15:54 MST, Todd C. Miller
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description tuxce.net 2011-03-06 10:19:03 MST
Created attachment 307 [details]
Fix exit value of "sudo -v" in sudoers module.

In previous version, sudo -v returned 0 when user was allowed to use sudo.

In version 1.8.0, exit code is always 1.
Comment 1 Todd C. Miller 2011-03-06 15:54:28 MST
Created attachment 309 [details]
Exit value fix for "sudo -v" and "sudo -l"

I've attached the fix that I committed which will be part of the next release.
Comment 2 Todd C. Miller 2011-03-22 09:47:46 MDT
This is fixed in 1.8.1 which is currently in beta test, see
http://www.sudo.ws/sudo/devel.html
Comment 3 Todd C. Miller 2011-04-11 08:03:55 MDT
Fixed in sudo 1.8.1