]> granicus.if.org Git - sudo/commitdiff
PERM_RUNAS -> PERM_FULL_RUNAS
authorTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 16 Jan 2004 23:07:03 +0000 (23:07 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 16 Jan 2004 23:07:03 +0000 (23:07 +0000)
env.c
sudo.c

diff --git a/env.c b/env.c
index 7adb816f1f5191bd967fd2c2c972da91043aa4bc..94bbf1e067b01dbf7118682e73735ce6c3439324 100644 (file)
--- a/env.c
+++ b/env.c
@@ -461,7 +461,7 @@ rebuild_env(envp, reset_home, noexec)
        insert_env(format_env("USER", runas_pw->pw_name, VNULL), 1);
     }
 
-    /* Set $HOME for `sudo -H'.  Only valid at PERM_RUNAS. */
+    /* Set $HOME for `sudo -H'.  Only valid at PERM_FULL_RUNAS. */
     if (reset_home && runas_pw->pw_dir)
        insert_env(format_env("HOME", runas_pw->pw_dir, VNULL), 1);
 
diff --git a/sudo.c b/sudo.c
index 21ac19c791f5003ac837875ed54ad550569d341b..7be58b47fc618ae14b0bca24b72d2fefad9844c5 100644 (file)
--- a/sudo.c
+++ b/sudo.c
@@ -399,7 +399,7 @@ main(argc, argv, envp)
 #endif /* RLIMIT_CORE && !SUDO_DEVEL */
 
        /* Become specified user or root. */
-       set_perms(PERM_RUNAS);
+       set_perms(PERM_FULL_RUNAS);
 
        /* Close the password and group files */
        endpwent();