version 1.7, 2021/04/02 10:52:15 |
version 1.9, 2021/04/02 12:19:39 |
Line 2167 readfile (int nolock) |
|
Line 2167 readfile (int nolock) |
|
* crypt_checkpass takes care of validating the hashing so we |
* crypt_checkpass takes care of validating the hashing so we |
* don't have to ensure the password field has a valid length */ |
* don't have to ensure the password field has a valid length */ |
|
|
#ifndef(__OpenBSD__) |
|
while (*b != ':') |
while (*b != ':') |
{ |
{ |
users[f_num]->password[(b - n)] = *b; |
users[f_num]->password[(b - n)] = *b; |
b++; |
b++; |
|
#if !defined(__OpenBSD__) |
if ((b - n) >= DGL_PASSWDLEN) { |
if ((b - n) >= DGL_PASSWDLEN) { |
debug_write("passwd field too long"); |
debug_write("passwd field too long"); |
graceful_exit (102); |
graceful_exit (102); |
} |
} |
} |
|
#endif |
#endif |
|
} |
|
|
/* advance to next field */ |
/* advance to next field */ |
n = b + 1; |
n = b + 1; |