Bug 479

Summary: sudo -v always return 1
Product: Sudo Reporter: tuxce.net
Component: SudoersAssignee: Todd C. Miller <Todd.Miller>
Status: RESOLVED FIXED    
Severity: normal    
Priority: low    
Version: 1.8.0   
Hardware: PC   
OS: Linux   
Attachments: Fix exit value of "sudo -v" in sudoers module.
Exit value fix for "sudo -v" and "sudo -l"

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