From: Todd C. Miller Date: Fri, 22 Nov 2002 18:23:24 +0000 (+0000) Subject: o timestamp_uid should be uid_t, not int X-Git-Tag: SUDO_1_6_7~113 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4f2d87e28ce54eaa349b0a210b3428a6de3292d3;p=sudo o timestamp_uid should be uid_t, not int o clarify error message when sudo is run by root and no_root_sudo is set --- diff --git a/sudo.c b/sudo.c index a828ac396..568371bee 100644 --- a/sudo.c +++ b/sudo.c @@ -131,7 +131,7 @@ FILE *sudoers_fp = NULL; struct interface *interfaces; int num_interfaces; int tgetpass_flags; -int timestamp_uid; +uid_t timestamp_uid; extern int errorlineno; #if defined(RLIMIT_CORE) && !defined(SUDO_DEVEL) static struct rlimit corelimit; @@ -315,8 +315,9 @@ main(argc, argv, envp) /* Is root even allowed to run sudo? */ if (user_uid == 0 && !def_flag(I_ROOT_SUDO)) { - (void) fputs("You are already root, you don't need to use sudo.\n", - stderr); + (void) fprintf(stderr, + "Sorry, %s has been configured to not allow root to run it.\n", + Argv[0]); exit(1); }