diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2006-12-30 14:46:51 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2006-12-30 14:46:51 +0000 |
commit | b5a122b6f9643fb052d31390e435397960289154 (patch) | |
tree | a6e22557206650da7a44300823621cbb17c86293 /loginutils/passwd.c | |
parent | d9e4ddc38b38b7cf6cc7bdd9dcf6794f8aad8d2e (diff) | |
download | busybox-w32-b5a122b6f9643fb052d31390e435397960289154.tar.gz busybox-w32-b5a122b6f9643fb052d31390e435397960289154.tar.bz2 busybox-w32-b5a122b6f9643fb052d31390e435397960289154.zip |
fix for uclibc-without-shadow.h compilation
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 c825c978f..5c822b190 100644 --- a/loginutils/passwd.c +++ b/loginutils/passwd.c | |||
@@ -276,7 +276,8 @@ int passwd_main(int argc, char **argv) | |||
276 | } | 276 | } |
277 | 277 | ||
278 | filename = bb_path_passwd_file; | 278 | filename = bb_path_passwd_file; |
279 | if (ENABLE_FEATURE_SHADOWPASSWDS) { | 279 | #if ENABLE_FEATURE_SHADOWPASSWDS |
280 | { | ||
280 | struct spwd *sp = getspnam(name); | 281 | struct spwd *sp = getspnam(name); |
281 | if (!sp) { | 282 | if (!sp) { |
282 | /* LOGMODE_BOTH */ | 283 | /* LOGMODE_BOTH */ |
@@ -288,6 +289,7 @@ int passwd_main(int argc, char **argv) | |||
288 | pw->pw_passwd = sp->sp_pwdp; | 289 | pw->pw_passwd = sp->sp_pwdp; |
289 | } | 290 | } |
290 | } | 291 | } |
292 | #endif | ||
291 | 293 | ||
292 | /* Decide what the new password will be */ | 294 | /* Decide what the new password will be */ |
293 | newp = NULL; | 295 | newp = NULL; |