X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=loginutils%2Fsulogin.c;h=8e3095c87dfdeda1234633faafa544d79c8f3dc0;hb=c84520d73dbe100449d84241ec0df9d02ee0fc4d;hp=30f9d9350a600a7434dade20f454508f12a561d7;hpb=7fa0fcafca76454effc65f8c3121a37cf0952ff9;p=oweals%2Fbusybox.git diff --git a/loginutils/sulogin.c b/loginutils/sulogin.c index 30f9d9350..8e3095c87 100644 --- a/loginutils/sulogin.c +++ b/loginutils/sulogin.c @@ -34,6 +34,7 @@ static void catchalarm(int ATTRIBUTE_UNUSED junk) } +int sulogin_main(int argc, char **argv); int sulogin_main(int argc, char **argv) { char *cp; @@ -74,13 +75,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 */