diff options
author | Eric Andersen <andersen@codepoet.org> | 2002-06-23 08:24:25 +0400 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2002-06-23 08:24:25 +0400 |
commit | 27f64e1f4eb4354844f6553e37501deffde8373e (patch) | |
tree | 632fbb26b13ad67f6efa335c33a22551b2707930 /loginutils/su.c | |
parent | 0fbff134f400ea51540cfd6ef5eeaeab60f9a5de (diff) |
Port over the last of the tinylogin applets
-Erik
Diffstat (limited to 'loginutils/su.c')
-rw-r--r-- | loginutils/su.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/loginutils/su.c b/loginutils/su.c index 33e62e837..6d427262e 100644 --- a/loginutils/su.c +++ b/loginutils/su.c @@ -1,7 +1,5 @@ /* vi: set sw=4 ts=4: */ -#include "busybox.h" - #include <fcntl.h> #include <signal.h> #include <stdio.h> @@ -18,10 +16,7 @@ #include <ctype.h> #include <time.h> -#include "pwd.h" -#include "grp.h" - -#include "tinylogin.h" +#include "busybox.h" @@ -161,7 +156,7 @@ int su_main ( int argc, char **argv ) change_identity ( pw ); setup_environment ( opt_shell, opt_loginshell, !opt_preserve, pw ); - run_shell ( opt_shell, opt_loginshell, opt_command, opt_args ); + run_shell ( opt_shell, opt_loginshell, opt_command, (const char**)opt_args ); return EXIT_FAILURE; } |