From: Todd C. Miller Date: Mon, 15 Jan 2018 17:29:38 +0000 (-0700) Subject: treat uid as unsigned in error message X-Git-Tag: SUDO_1_8_22^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f7896025ea3c0b16651995081cc73c894ba99a43;p=sudo treat uid as unsigned in error message --- diff --git a/plugins/sudoers/tsdump.c b/plugins/sudoers/tsdump.c index 45d5ebd56..8229fa42c 100644 --- a/plugins/sudoers/tsdump.c +++ b/plugins/sudoers/tsdump.c @@ -118,7 +118,7 @@ main(int argc, char *argv[]) if (user == NULL) { if ((pw = getpwuid(geteuid())) == NULL) - sudo_fatalx(U_("unknown uid: %d"), (int)geteuid()); + sudo_fatalx(U_("unknown uid: %u"), (unsigned int)geteuid()); user = pw->pw_name; } if (asprintf(&fname, "%s/%s", _PATH_SUDO_TIMEDIR, user) == -1)