2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-09-03 15:55:40 +00:00

sudo should not send mail if someone who runs 'sudo -l' has no entry.

This commit is contained in:
Todd C. Miller
2004-10-26 22:07:03 +00:00
parent 8204723c87
commit f7d7a3d5f7

3
ldap.c
View File

@@ -956,7 +956,8 @@ int pwflag;
} else { } else {
/* we do not have a match */ /* we do not have a match */
ret=VALIDATE_NOT_OK; ret=VALIDATE_NOT_OK;
if (!ldap_user_matches) SET(ret,FLAG_NO_USER); if (pwflag) SET(ret,FLAG_NO_CHECK);
else if (!ldap_user_matches) SET(ret,FLAG_NO_USER);
else if (!ldap_host_matches) SET(ret,FLAG_NO_HOST); else if (!ldap_host_matches) SET(ret,FLAG_NO_HOST);
} }