If the user's passwd entry cannot be resolved via the uid, use the

same error message as visudo.
This commit is contained in:
Todd C. Miller
2018-10-13 06:19:03 -06:00
parent ae7198a247
commit fbf396e336

View File

@@ -529,7 +529,7 @@ get_user_info(struct user_details *ud)
aix_restoreauthdb();
#endif
if (pw == NULL)
sudo_fatalx(U_("unknown uid %u: who are you?"), (unsigned int)ud->uid);
sudo_fatalx(U_("you do not exist in the %s database"), "passwd");
user_info[i] = sudo_new_key_val("user", pw->pw_name);
if (user_info[i] == NULL)