diff options
Diffstat (limited to 'loginutils/passwd.c')
-rw-r--r-- | loginutils/passwd.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/loginutils/passwd.c b/loginutils/passwd.c index c825c97..5c822b1 100644 --- a/loginutils/passwd.c +++ b/loginutils/passwd.c @@ -276,7 +276,8 @@ int passwd_main(int argc, char **argv) } filename = bb_path_passwd_file; - if (ENABLE_FEATURE_SHADOWPASSWDS) { +#if ENABLE_FEATURE_SHADOWPASSWDS + { struct spwd *sp = getspnam(name); if (!sp) { /* LOGMODE_BOTH */ @@ -288,6 +289,7 @@ int passwd_main(int argc, char **argv) pw->pw_passwd = sp->sp_pwdp; } } +#endif /* Decide what the new password will be */ newp = NULL; |