]> granicus.if.org Git - sudo/commitdiff
In dump-only mode, use "root" as the default username instead of
authorTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 1 Apr 2011 17:56:20 +0000 (13:56 -0400)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 1 Apr 2011 17:56:20 +0000 (13:56 -0400)
"nobody" as the latter may not be available on all systems.

--HG--
branch : 1.7

testsudoers.c

index b50e14dcb9083acd4ab99a91ce9e87116457b8a2..139c7c7cddfebce7dba2eff284deecde60da70af 100644 (file)
@@ -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)