diff options
author | Eric Andersen <andersen@codepoet.org> | 2004-03-15 08:29:22 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2004-03-15 08:29:22 +0000 |
commit | c7bda1ce659294d6e22c06e087f6f265983c7578 (patch) | |
tree | 4c6d2217f4d8306c59cf1096f8664e1cfd167213 /loginutils/su.c | |
parent | 8854004b41065b3d081af7f3df13a100b0c8bfbe (diff) | |
download | busybox-w32-c7bda1ce659294d6e22c06e087f6f265983c7578.tar.gz busybox-w32-c7bda1ce659294d6e22c06e087f6f265983c7578.tar.bz2 busybox-w32-c7bda1ce659294d6e22c06e087f6f265983c7578.zip |
Remove trailing whitespace. Update copyright to include 2004.
Diffstat (limited to 'loginutils/su.c')
-rw-r--r-- | loginutils/su.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/loginutils/su.c b/loginutils/su.c index 2d7a7ac05..ec0c16c7d 100644 --- a/loginutils/su.c +++ b/loginutils/su.c | |||
@@ -84,12 +84,12 @@ int su_main ( int argc, char **argv ) | |||
84 | } | 84 | } |
85 | 85 | ||
86 | /* get user if specified */ | 86 | /* get user if specified */ |
87 | if ( optind < argc ) | 87 | if ( optind < argc ) |
88 | opt_username = argv [optind++]; | 88 | opt_username = argv [optind++]; |
89 | 89 | ||
90 | if ( optind < argc ) | 90 | if ( optind < argc ) |
91 | opt_args = argv + optind; | 91 | opt_args = argv + optind; |
92 | 92 | ||
93 | #if defined( SYSLOG_SUCCESS ) || defined( SYSLOG_FAILURE ) | 93 | #if defined( SYSLOG_SUCCESS ) || defined( SYSLOG_FAILURE ) |
94 | #ifdef CONFIG_FEATURE_U_W_TMP | 94 | #ifdef CONFIG_FEATURE_U_W_TMP |
95 | /* The utmp entry (via getlogin) is probably the best way to identify | 95 | /* The utmp entry (via getlogin) is probably the best way to identify |
@@ -108,11 +108,11 @@ int su_main ( int argc, char **argv ) | |||
108 | 108 | ||
109 | openlog ( bb_applet_name, 0, LOG_AUTH ); | 109 | openlog ( bb_applet_name, 0, LOG_AUTH ); |
110 | #endif | 110 | #endif |
111 | 111 | ||
112 | pw = getpwnam ( opt_username ); | 112 | pw = getpwnam ( opt_username ); |
113 | if ( !pw ) | 113 | if ( !pw ) |
114 | bb_error_msg_and_die ( "user %s does not exist", opt_username ); | 114 | bb_error_msg_and_die ( "user %s does not exist", opt_username ); |
115 | 115 | ||
116 | /* Make sure pw->pw_shell is non-NULL. It may be NULL when NEW_USER | 116 | /* Make sure pw->pw_shell is non-NULL. It may be NULL when NEW_USER |
117 | is a username that is retrieved via NIS (YP), but that doesn't have | 117 | is a username that is retrieved via NIS (YP), but that doesn't have |
118 | a default shell listed. */ | 118 | a default shell listed. */ |
@@ -145,13 +145,13 @@ int su_main ( int argc, char **argv ) | |||
145 | if ( !opt_shell ) | 145 | if ( !opt_shell ) |
146 | opt_shell = pw->pw_shell; | 146 | opt_shell = pw->pw_shell; |
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 | 150 | run_shell ( opt_shell, opt_loginshell, opt_command, (const char**)opt_args |
151 | #ifdef CONFIG_SELINUX | 151 | #ifdef CONFIG_SELINUX |
152 | , 0 | 152 | , 0 |
153 | #endif | 153 | #endif |
154 | ); | 154 | ); |
155 | 155 | ||
156 | return EXIT_FAILURE; | 156 | return EXIT_FAILURE; |
157 | } | 157 | } |