From: Todd C. Miller Date: Thu, 15 Aug 1996 19:47:01 +0000 (+0000) Subject: don't yell too loudly at non-sudoers if they do "sudo -l" X-Git-Tag: SUDO_1_5_0~33 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=085fbf822271d3599df2edab63d4ac42e15e8ab0;p=sudo don't yell too loudly at non-sudoers if they do "sudo -l" --- diff --git a/sudo.c b/sudo.c index 527e59672..9b19507e1 100644 --- 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);