diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-10-28 18:57:19 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-10-28 18:57:19 +0200 |
commit | e4dcba1c103dc28e927e004791e331aaf604383d (patch) | |
tree | a18094ecc54fcea2cb523a802e0c414c3e6f85bf /loginutils/login.c | |
parent | 776509544123c68bbc128c0fdb2f699062d294cf (diff) | |
download | busybox-w32-e4dcba1c103dc28e927e004791e331aaf604383d.tar.gz busybox-w32-e4dcba1c103dc28e927e004791e331aaf604383d.tar.bz2 busybox-w32-e4dcba1c103dc28e927e004791e331aaf604383d.zip |
*: whitespace fixes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'loginutils/login.c')
-rw-r--r-- | loginutils/login.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/loginutils/login.c b/loginutils/login.c index 3065eaa5b..9a624df9a 100644 --- a/loginutils/login.c +++ b/loginutils/login.c | |||
@@ -124,7 +124,7 @@ static void run_login_script(struct passwd *pw, char *full_tty) | |||
124 | xsetenv("LOGIN_UID", utoa(pw->pw_uid)); | 124 | xsetenv("LOGIN_UID", utoa(pw->pw_uid)); |
125 | xsetenv("LOGIN_GID", utoa(pw->pw_gid)); | 125 | xsetenv("LOGIN_GID", utoa(pw->pw_gid)); |
126 | xsetenv("LOGIN_SHELL", pw->pw_shell); | 126 | xsetenv("LOGIN_SHELL", pw->pw_shell); |
127 | spawn_and_wait(t_argv); /* NOMMU-friendly */ | 127 | spawn_and_wait(t_argv); /* NOMMU-friendly */ |
128 | unsetenv("LOGIN_TTY"); | 128 | unsetenv("LOGIN_TTY"); |
129 | unsetenv("LOGIN_USER"); | 129 | unsetenv("LOGIN_USER"); |
130 | unsetenv("LOGIN_UID"); | 130 | unsetenv("LOGIN_UID"); |
@@ -245,7 +245,7 @@ int login_main(int argc UNUSED_PARAM, char **argv) | |||
245 | 245 | ||
246 | /* Let's find out and memorize our tty */ | 246 | /* Let's find out and memorize our tty */ |
247 | if (!isatty(STDIN_FILENO) || !isatty(STDOUT_FILENO) || !isatty(STDERR_FILENO)) | 247 | if (!isatty(STDIN_FILENO) || !isatty(STDOUT_FILENO) || !isatty(STDERR_FILENO)) |
248 | return EXIT_FAILURE; /* Must be a terminal */ | 248 | return EXIT_FAILURE; /* Must be a terminal */ |
249 | full_tty = xmalloc_ttyname(STDIN_FILENO); | 249 | full_tty = xmalloc_ttyname(STDIN_FILENO); |
250 | if (!full_tty) | 250 | if (!full_tty) |
251 | full_tty = xstrdup("UNKNOWN"); | 251 | full_tty = xstrdup("UNKNOWN"); |