aboutsummaryrefslogtreecommitdiff
path: root/libbb/correct_password.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbb/correct_password.c')
-rw-r--r--libbb/correct_password.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libbb/correct_password.c b/libbb/correct_password.c
index 396253614..1da83c441 100644
--- a/libbb/correct_password.c
+++ b/libbb/correct_password.c
@@ -49,14 +49,14 @@
49int correct_password ( const struct passwd *pw ) 49int correct_password ( const struct passwd *pw )
50{ 50{
51 char *unencrypted, *encrypted, *correct; 51 char *unencrypted, *encrypted, *correct;
52 52
53#ifdef CONFIG_FEATURE_SHADOWPASSWDS 53#ifdef CONFIG_FEATURE_SHADOWPASSWDS
54 if (( strcmp ( pw-> pw_passwd, "x" ) == 0 ) || ( strcmp ( pw-> pw_passwd, "*" ) == 0 )) { 54 if (( strcmp ( pw-> pw_passwd, "x" ) == 0 ) || ( strcmp ( pw-> pw_passwd, "*" ) == 0 )) {
55 struct spwd *sp = getspnam ( pw-> pw_name ); 55 struct spwd *sp = getspnam ( pw-> pw_name );
56 56
57 if ( !sp ) 57 if ( !sp )
58 bb_error_msg_and_die ( "no valid shadow password" ); 58 bb_error_msg_and_die ( "no valid shadow password" );
59 59
60 correct = sp-> sp_pwdp; 60 correct = sp-> sp_pwdp;
61 } 61 }
62 else 62 else