diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2006-12-28 21:33:30 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2006-12-28 21:33:30 +0000 |
commit | 7fa0fcafca76454effc65f8c3121a37cf0952ff9 (patch) | |
tree | 7342a1d3a0320d586b7e18cdadb8cab580e32e79 /loginutils/sulogin.c | |
parent | 9a44c4f91ce7e517d5325fd3743e6ad9d54ef3f0 (diff) | |
download | busybox-w32-7fa0fcafca76454effc65f8c3121a37cf0952ff9.tar.gz busybox-w32-7fa0fcafca76454effc65f8c3121a37cf0952ff9.tar.bz2 busybox-w32-7fa0fcafca76454effc65f8c3121a37cf0952ff9.zip |
fix build without shadow support
Diffstat (limited to 'loginutils/sulogin.c')
-rw-r--r-- | loginutils/sulogin.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/loginutils/sulogin.c b/loginutils/sulogin.c index c07264e7b..30f9d9350 100644 --- a/loginutils/sulogin.c +++ b/loginutils/sulogin.c | |||
@@ -41,7 +41,6 @@ int sulogin_main(int argc, char **argv) | |||
41 | char *timeout_arg; | 41 | char *timeout_arg; |
42 | const char * const *p; | 42 | const char * const *p; |
43 | struct passwd *pwd; | 43 | struct passwd *pwd; |
44 | struct spwd *spwd; | ||
45 | const char *shell; | 44 | const char *shell; |
46 | 45 | ||
47 | logmode = LOGMODE_BOTH; | 46 | logmode = LOGMODE_BOTH; |
@@ -76,7 +75,7 @@ int sulogin_main(int argc, char **argv) | |||
76 | } | 75 | } |
77 | 76 | ||
78 | if (ENABLE_FEATURE_SHADOWPASSWDS) { | 77 | if (ENABLE_FEATURE_SHADOWPASSWDS) { |
79 | spwd = getspnam(pwd->pw_name); | 78 | struct spwd *spwd = getspnam(pwd->pw_name); |
80 | if (!spwd) { | 79 | if (!spwd) { |
81 | goto auth_error; | 80 | goto auth_error; |
82 | } | 81 | } |