]> granicus.if.org Git - sudo/commit
Fix return value of "sudo -l command" when command is not allowed, broken
authorTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 8 Mar 2011 14:38:21 +0000 (09:38 -0500)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 8 Mar 2011 14:38:21 +0000 (09:38 -0500)
commitd6252de205624938c408d8f40c4cd8ba8d337328
treeec8662e0a0c4ffa07ac3346bac850485c629cff9
parent47968912a2006327a47feb67284106c4138ed0c2
Fix return value of "sudo -l command" when command is not allowed, broken
in [c7097ea22111].  The default return value is now TRUE and a bad:
label is used when permission is denied.  Also fixed missing permissions
restoration on certain errors.  On error()/errorx(), the password and
group files are now closed before returning.
plugins/sudoers/sudoers.c