summaryrefslogtreecommitdiff
path: root/loginutils/sulogin.c
diff options
context:
space:
mode:
authorDenis Vlasenko2006-12-30 14:46:51 +0000
committerDenis Vlasenko2006-12-30 14:46:51 +0000
commitb5a122b6f9643fb052d31390e435397960289154 (patch)
treea6e22557206650da7a44300823621cbb17c86293 /loginutils/sulogin.c
parentd9e4ddc38b38b7cf6cc7bdd9dcf6794f8aad8d2e (diff)
downloadbusybox-b5a122b6f9643fb052d31390e435397960289154.zip
busybox-b5a122b6f9643fb052d31390e435397960289154.tar.gz
fix for uclibc-without-shadow.h compilation
Diffstat (limited to 'loginutils/sulogin.c')
-rw-r--r--loginutils/sulogin.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/loginutils/sulogin.c b/loginutils/sulogin.c
index 30f9d93..8bcb393 100644
--- a/loginutils/sulogin.c
+++ b/loginutils/sulogin.c
@@ -74,13 +74,15 @@ int sulogin_main(int argc, char **argv)
goto auth_error;
}
- if (ENABLE_FEATURE_SHADOWPASSWDS) {
+#if ENABLE_FEATURE_SHADOWPASSWDS
+ {
struct spwd *spwd = getspnam(pwd->pw_name);
if (!spwd) {
goto auth_error;
}
pwd->pw_passwd = spwd->sp_pwdp;
}
+#endif
while (1) {
/* cp points to a static buffer that is zeroed every time */