]> granicus.if.org Git - sudo/commitdiff
Consistency. Use same error for bad -u #uid when targetpw is set
authorTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 6 Aug 2004 23:42:52 +0000 (23:42 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 6 Aug 2004 23:42:52 +0000 (23:42 +0000)
as we do when a bad -u username is specified.

sudo.c

diff --git a/sudo.c b/sudo.c
index 7c22afcc5edffba14beb7b996ab966c9d1796f25..90ddfd31acc254b7e2374d68853d243953ea8ba3 100644 (file)
--- a/sudo.c
+++ b/sudo.c
@@ -1074,7 +1074,7 @@ get_authpw()
                def_runas_default);
     } else if (def_targetpw) {
        if (runas_pw->pw_name == NULL)
-           log_error(0, "user %lu does not exist in the passwd file!",
+           log_error(NO_MAIL|MSG_ONLY, "no passwd entry for %lu!",
                runas_pw->pw_uid);
        pw = runas_pw;
     } else