diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-02-26 09:52:45 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-02-26 09:52:45 +0100 |
commit | fd686a262fa34b71900b010b4b31d7e2e3f3385c (patch) | |
tree | 102c38699d6d732ed0f5bc2e478a824e59a59f75 /loginutils/su.c | |
parent | 99709ab03387ca623e3fc1cac69d242ed44da45c (diff) | |
download | busybox-w32-fd686a262fa34b71900b010b4b31d7e2e3f3385c.tar.gz busybox-w32-fd686a262fa34b71900b010b4b31d7e2e3f3385c.tar.bz2 busybox-w32-fd686a262fa34b71900b010b4b31d7e2e3f3385c.zip |
setup_environment(): eliminate one parameter
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'loginutils/su.c')
-rw-r--r-- | loginutils/su.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/loginutils/su.c b/loginutils/su.c index a3f7ed8a0..6356631b8 100644 --- a/loginutils/su.c +++ b/loginutils/su.c | |||
@@ -102,8 +102,10 @@ int su_main(int argc UNUSED_PARAM, char **argv) | |||
102 | opt_shell = pw->pw_shell; | 102 | opt_shell = pw->pw_shell; |
103 | 103 | ||
104 | change_identity(pw); | 104 | change_identity(pw); |
105 | /* setup_environment params: shell, clear_env, change_env, pw */ | 105 | setup_environment(opt_shell, |
106 | setup_environment(opt_shell, flags & SU_OPT_l, !(flags & SU_OPT_mp), pw); | 106 | ((flags & SU_OPT_l) / SU_OPT_l * SETUP_ENV_CLEARENV) |
107 | + (!(flags & SU_OPT_mp) * SETUP_ENV_CHANGEENV), | ||
108 | pw); | ||
107 | IF_SELINUX(set_current_security_context(NULL);) | 109 | IF_SELINUX(set_current_security_context(NULL);) |
108 | 110 | ||
109 | /* Never returns */ | 111 | /* Never returns */ |