aboutsummaryrefslogtreecommitdiff
path: root/loginutils
diff options
context:
space:
mode:
authorvda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-12-28 21:33:30 +0000
committervda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-12-28 21:33:30 +0000
commit948390a7c7982ef09abd8c6328088077cc399ff9 (patch)
tree7342a1d3a0320d586b7e18cdadb8cab580e32e79 /loginutils
parent5a4b69f8a10fff8f08a97e0dd4b6de40d36f671f (diff)
downloadbusybox-w32-948390a7c7982ef09abd8c6328088077cc399ff9.tar.gz
busybox-w32-948390a7c7982ef09abd8c6328088077cc399ff9.tar.bz2
busybox-w32-948390a7c7982ef09abd8c6328088077cc399ff9.zip
fix build without shadow support
git-svn-id: svn://busybox.net/trunk/busybox@17100 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'loginutils')
-rw-r--r--loginutils/sulogin.c3
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 }