=================================================================== RCS file: /cvs2/dgamelaunch-openbsd/dgamelaunch.c,v retrieving revision 1.6 retrieving revision 1.7 diff -u -p -r1.6 -r1.7 --- dgamelaunch-openbsd/dgamelaunch.c 2021/03/25 21:15:22 1.6 +++ dgamelaunch-openbsd/dgamelaunch.c 2021/04/02 10:52:15 1.7 @@ -2163,6 +2163,11 @@ readfile (int nolock) b = n; /* 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 */ + +#ifndef(__OpenBSD__) while (*b != ':') { users[f_num]->password[(b - n)] = *b; @@ -2172,6 +2177,7 @@ readfile (int nolock) graceful_exit (102); } } +#endif /* advance to next field */ n = b + 1;