]> granicus.if.org Git - sudo/commitdiff
If the user's passwd entry cannot be resolved via the uid, use the
authorTodd C. Miller <Todd.Miller@sudo.ws>
Sat, 13 Oct 2018 12:19:03 +0000 (06:19 -0600)
committerTodd C. Miller <Todd.Miller@sudo.ws>
Sat, 13 Oct 2018 12:19:03 +0000 (06:19 -0600)
same error message as visudo.

src/sudo.c

index 604cd18caf6a195f40714933f842e05ef59b3216..47c282f7faaf2e436b6dcf31466a8ad830f69c66 100644 (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)