PERM_RUNAS -> PERM_FULL_RUNAS
This commit is contained in:
2
env.c
2
env.c
@@ -461,7 +461,7 @@ rebuild_env(envp, reset_home, noexec)
|
|||||||
insert_env(format_env("USER", runas_pw->pw_name, VNULL), 1);
|
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)
|
if (reset_home && runas_pw->pw_dir)
|
||||||
insert_env(format_env("HOME", runas_pw->pw_dir, VNULL), 1);
|
insert_env(format_env("HOME", runas_pw->pw_dir, VNULL), 1);
|
||||||
|
|
||||||
|
2
sudo.c
2
sudo.c
@@ -399,7 +399,7 @@ main(argc, argv, envp)
|
|||||||
#endif /* RLIMIT_CORE && !SUDO_DEVEL */
|
#endif /* RLIMIT_CORE && !SUDO_DEVEL */
|
||||||
|
|
||||||
/* Become specified user or root. */
|
/* Become specified user or root. */
|
||||||
set_perms(PERM_RUNAS);
|
set_perms(PERM_FULL_RUNAS);
|
||||||
|
|
||||||
/* Close the password and group files */
|
/* Close the password and group files */
|
||||||
endpwent();
|
endpwent();
|
||||||
|
Reference in New Issue
Block a user