diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2006-12-30 14:46:51 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2006-12-30 14:46:51 +0000 |
commit | b5a122b6f9643fb052d31390e435397960289154 (patch) | |
tree | a6e22557206650da7a44300823621cbb17c86293 /loginutils/sulogin.c | |
parent | d9e4ddc38b38b7cf6cc7bdd9dcf6794f8aad8d2e (diff) | |
download | busybox-w32-b5a122b6f9643fb052d31390e435397960289154.tar.gz busybox-w32-b5a122b6f9643fb052d31390e435397960289154.tar.bz2 busybox-w32-b5a122b6f9643fb052d31390e435397960289154.zip |
fix for uclibc-without-shadow.h compilation
Diffstat (limited to 'loginutils/sulogin.c')
-rw-r--r-- | loginutils/sulogin.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/loginutils/sulogin.c b/loginutils/sulogin.c index 30f9d9350..8bcb393f5 100644 --- a/loginutils/sulogin.c +++ b/loginutils/sulogin.c | |||
@@ -74,13 +74,15 @@ int sulogin_main(int argc, char **argv) | |||
74 | goto auth_error; | 74 | goto auth_error; |
75 | } | 75 | } |
76 | 76 | ||
77 | if (ENABLE_FEATURE_SHADOWPASSWDS) { | 77 | #if ENABLE_FEATURE_SHADOWPASSWDS |
78 | { | ||
78 | struct spwd *spwd = getspnam(pwd->pw_name); | 79 | struct spwd *spwd = getspnam(pwd->pw_name); |
79 | if (!spwd) { | 80 | if (!spwd) { |
80 | goto auth_error; | 81 | goto auth_error; |
81 | } | 82 | } |
82 | pwd->pw_passwd = spwd->sp_pwdp; | 83 | pwd->pw_passwd = spwd->sp_pwdp; |
83 | } | 84 | } |
85 | #endif | ||
84 | 86 | ||
85 | while (1) { | 87 | while (1) { |
86 | /* cp points to a static buffer that is zeroed every time */ | 88 | /* cp points to a static buffer that is zeroed every time */ |