]> 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:39:12 +0000 (09:39 -0500)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 8 Mar 2011 14:39:12 +0000 (09:39 -0500)
commitcec0fb3b284420d94ceefd406c0b168c765ec064
tree2d1c59928b5b7f2d555d1b811b0ee000645fa077
parent213157b7fa506fda2a0d3794461f46e7b098165c
parentd6252de205624938c408d8f40c4cd8ba8d337328
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.

--HG--
branch : 1.8