summaryrefslogtreecommitdiff
path: root/loginutils/passwd.c
diff options
context:
space:
mode:
Diffstat (limited to 'loginutils/passwd.c')
-rw-r--r--loginutils/passwd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/loginutils/passwd.c b/loginutils/passwd.c
index bcb7f2b26..0d910f56a 100644
--- a/loginutils/passwd.c
+++ b/loginutils/passwd.c
@@ -275,7 +275,8 @@ int passwd_main(int argc, char **argv)
275 } 275 }
276 276
277 filename = bb_path_passwd_file; 277 filename = bb_path_passwd_file;
278 if (ENABLE_FEATURE_SHADOWPASSWDS) { 278#if ENABLE_FEATURE_SHADOWPASSWDS
279 {
279 struct spwd *sp = getspnam(name); 280 struct spwd *sp = getspnam(name);
280 if (!sp) { 281 if (!sp) {
281 /* LOGMODE_BOTH */ 282 /* LOGMODE_BOTH */
@@ -287,6 +288,7 @@ int passwd_main(int argc, char **argv)
287 pw->pw_passwd = sp->sp_pwdp; 288 pw->pw_passwd = sp->sp_pwdp;
288 } 289 }
289 } 290 }
291#endif
290 292
291 /* Decide what the new password will be */ 293 /* Decide what the new password will be */
292 newp = NULL; 294 newp = NULL;