]> granicus.if.org Git - sudo/commitdiff
treat uid as unsigned in error message
authorTodd C. Miller <Todd.Miller@sudo.ws>
Mon, 15 Jan 2018 17:29:38 +0000 (10:29 -0700)
committerTodd C. Miller <Todd.Miller@sudo.ws>
Mon, 15 Jan 2018 17:29:38 +0000 (10:29 -0700)
plugins/sudoers/tsdump.c

index 45d5ebd566e74dd820fa0eab8c6e7de36b5d195d..8229fa42c6661ef760c6d7dff16e1af9231ca8d9 100644 (file)
@@ -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)