version 1.5, 2021/03/25 21:01:26 |
version 1.8, 2021/04/02 11:02:20 |
Line 2163 readfile (int nolock) |
|
Line 2163 readfile (int nolock) |
|
b = n; |
b = n; |
|
|
/* pw field */ |
/* pw field */ |
|
/* OpenBSD's implementation stores the password in hashed form. |
|
* crypt_checkpass takes care of validating the hashing so we |
|
* don't have to ensure the password field has a valid length */ |
|
|
|
#if !defined(__OpenBSD__) |
while (*b != ':') |
while (*b != ':') |
{ |
{ |
users[f_num]->password[(b - n)] = *b; |
users[f_num]->password[(b - n)] = *b; |
Line 2172 readfile (int nolock) |
|
Line 2177 readfile (int nolock) |
|
graceful_exit (102); |
graceful_exit (102); |
} |
} |
} |
} |
|
#endif |
|
|
/* advance to next field */ |
/* advance to next field */ |
n = b + 1; |
n = b + 1; |
Line 2886 main (int argc, char** argv) |
|
Line 2892 main (int argc, char** argv) |
|
graceful_exit (6); |
graceful_exit (6); |
} |
} |
|
|
#ifdef __OpenBSD__ |
#if defined(__OpenBSD__) |
if ( pledge("stdio rpath wpath cpath fattr flock " |
if ( pledge("stdio rpath wpath cpath fattr flock " |
"tty proc exec ps", NULL )==-1 ) |
"tty proc exec ps", NULL )==-1 ) |
{ |
{ |