I forgot that chpass(1) and passwd(1) reach-around into libc for
authorderaadt <deraadt@openbsd.org>
Mon, 22 Jan 2024 21:07:09 +0000 (21:07 +0000)
committerderaadt <deraadt@openbsd.org>
Mon, 22 Jan 2024 21:07:09 +0000 (21:07 +0000)
commitc06670c5f7a1f4fb38a2feeac34047394e728663
tree505a8d7708af09e1c633c78904790c676110c2b8
parentebdedc24667b067cbc2b1b1d24f0c7ca3000715c
I forgot that chpass(1) and passwd(1) reach-around into libc for
getpwent.c (isn't it horrible), and therefore lack visibility of
the the libc-internal __hash_open() function.  Use -DFORCE_DBOPEN
in chpass/Makefile and passwd/Makefile and adjust getpwent.c to
use the external visible interface.  Is there a better way?
lib/libc/gen/getpwent.c
usr.bin/chpass/Makefile
usr.bin/passwd/Makefile