diff options
author | mjn3 <mjn3@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2003-03-19 09:13:01 +0000 |
---|---|---|
committer | mjn3 <mjn3@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2003-03-19 09:13:01 +0000 |
commit | e901c15d890dbbdce4c086963cb1513653fc46b5 (patch) | |
tree | a318d0f03aa076c74b576ea45dc543a5669e8e91 /libbb/correct_password.c | |
parent | 40758c00616c3b2c85d83eb4afdeb04b1f65c9f1 (diff) | |
download | busybox-w32-e901c15d890dbbdce4c086963cb1513653fc46b5.tar.gz busybox-w32-e901c15d890dbbdce4c086963cb1513653fc46b5.tar.bz2 busybox-w32-e901c15d890dbbdce4c086963cb1513653fc46b5.zip |
Major coreutils update.
git-svn-id: svn://busybox.net/trunk/busybox@6751 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'libbb/correct_password.c')
-rw-r--r-- | libbb/correct_password.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libbb/correct_password.c b/libbb/correct_password.c index 758b89eed..396253614 100644 --- a/libbb/correct_password.c +++ b/libbb/correct_password.c | |||
@@ -55,7 +55,7 @@ int correct_password ( const struct passwd *pw ) | |||
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 | 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 | } |
@@ -73,6 +73,6 @@ int correct_password ( const struct passwd *pw ) | |||
73 | return 0; | 73 | return 0; |
74 | } | 74 | } |
75 | encrypted = crypt ( unencrypted, correct ); | 75 | encrypted = crypt ( unencrypted, correct ); |
76 | memset ( unencrypted, 0, xstrlen ( unencrypted )); | 76 | memset ( unencrypted, 0, bb_strlen ( unencrypted )); |
77 | return ( strcmp ( encrypted, correct ) == 0 ) ? 1 : 0; | 77 | return ( strcmp ( encrypted, correct ) == 0 ) ? 1 : 0; |
78 | } | 78 | } |