From fbf396e3367f63e86b1ee0f2e6bb7900be4bafaf Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Sat, 13 Oct 2018 06:19:03 -0600 Subject: [PATCH] If the user's passwd entry cannot be resolved via the uid, use the same error message as visudo. --- src/sudo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sudo.c b/src/sudo.c index 604cd18ca..47c282f7f 100644 --- a/src/sudo.c +++ b/src/sudo.c @@ -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) -- 2.40.0