diff options
Diffstat (limited to 'loginutils/su.c')
-rw-r--r-- | loginutils/su.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/loginutils/su.c b/loginutils/su.c index ec0c16c7d..5f6140917 100644 --- a/loginutils/su.c +++ b/loginutils/su.c | |||
@@ -147,11 +147,10 @@ int su_main ( int argc, char **argv ) | |||
147 | 147 | ||
148 | change_identity ( pw ); | 148 | change_identity ( pw ); |
149 | setup_environment ( opt_shell, opt_loginshell, !opt_preserve, pw ); | 149 | setup_environment ( opt_shell, opt_loginshell, !opt_preserve, pw ); |
150 | run_shell ( opt_shell, opt_loginshell, opt_command, (const char**)opt_args | ||
151 | #ifdef CONFIG_SELINUX | 150 | #ifdef CONFIG_SELINUX |
152 | , 0 | 151 | set_current_security_context(NULL); |
153 | #endif | 152 | #endif |
154 | ); | 153 | run_shell ( opt_shell, opt_loginshell, opt_command, (const char**)opt_args); |
155 | 154 | ||
156 | return EXIT_FAILURE; | 155 | return EXIT_FAILURE; |
157 | } | 156 | } |