summaryrefslogtreecommitdiff
path: root/loginutils/passwd.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-01-20 20:20:32 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-01-20 20:20:32 +0000
commit8b7f6928c69a53fbcc56c7b0b9db14e79ba976da (patch)
tree908ae075ca46840f7ef6a44aefa008c8b342fa55 /loginutils/passwd.c
parenta2af67a8c5a1842f37d23508609c8b94d271c35e (diff)
downloadbusybox-w32-1_3_2.tar.gz
busybox-w32-1_3_2.tar.bz2
busybox-w32-1_3_2.zip
releasing busybox 1.3.21_3_2
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;