2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-22 18:08:23 +00:00

don't yell too loudly at non-sudoers if they do "sudo -l"

This commit is contained in:
Todd C. Miller 1996-08-15 19:47:01 +00:00
parent 740d2166e0
commit 085fbf8222

3
sudo.c
View File

@ -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);