From: Todd C. Miller Date: Fri, 1 Apr 2011 17:56:20 +0000 (-0400) Subject: In dump-only mode, use "root" as the default username instead of X-Git-Tag: SUDO_1_7_6~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=efaf6101bc65ac223e6a5117e696e4ca05530cb0;p=sudo In dump-only mode, use "root" as the default username instead of "nobody" as the latter may not be available on all systems. --HG-- branch : 1.7 --- diff --git a/testsudoers.c b/testsudoers.c index b50e14dcb..139c7c7cd 100644 --- a/testsudoers.c +++ b/testsudoers.c @@ -167,8 +167,8 @@ main(argc, argv) if (argc < 2) { if (!dflag) usage(); - if ((sudo_user.pw = sudo_getpwnam("nobody")) == NULL) - errorx(1, "no passwd entry for nobody!"); + if ((sudo_user.pw = sudo_getpwnam("root")) == NULL) + errorx(1, "no passwd entry for root!"); user_cmnd = user_base = "true"; } else { if ((sudo_user.pw = sudo_getpwnam(*argv)) == NULL)