From: Todd C. Miller Date: Fri, 16 Jan 2004 23:07:03 +0000 (+0000) Subject: PERM_RUNAS -> PERM_FULL_RUNAS X-Git-Tag: SUDO_1_6_8~237 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ecfc813757ef4be7580e9d42242b2f76c7d49596;p=sudo PERM_RUNAS -> PERM_FULL_RUNAS --- diff --git a/env.c b/env.c index 7adb816f1..94bbf1e06 100644 --- 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 21ac19c79..7be58b47f 100644 --- 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();