]> granicus.if.org Git - sudo/commitdiff
don't yell too loudly at non-sudoers if they do "sudo -l"
authorTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 15 Aug 1996 19:47:01 +0000 (19:47 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 15 Aug 1996 19:47:01 +0000 (19:47 +0000)
sudo.c

diff --git a/sudo.c b/sudo.c
index 527e59672d9fe019beee213d263a869a400b68cf..9b19507e1c34829fd1d55e1279067f4551bcd6b8 100644 (file)
--- a/sudo.c
+++ b/sudo.c
@@ -356,6 +356,9 @@ int main(argc, argv)
            break;
 
        default:
+           /* Anyone can try to list... */
+           if (sudo_mode == MODE_LIST)
+               rtn = VALIDATE_NOT_OK;
            log_error(rtn);
            set_perms(PERM_FULL_USER);
            inform_user(rtn);