Improve error handling
authortobias <tobias@openbsd.org>
Mon, 8 May 2023 16:11:41 +0000 (16:11 +0000)
committertobias <tobias@openbsd.org>
Mon, 8 May 2023 16:11:41 +0000 (16:11 +0000)
commit409c602088c99931ecc261d3d6df4062852f2787
treea5a3c9ec5fe94ca63ffc37fdde737f236927fc5e
parentef8b1151b6c9e8d05a8e5482b505c27de16b6dba
Improve error handling

Close pipe file descriptors if fork fails.
Also do not parse exit status of child if waitpid fails.

with input by and ok millert@
usr.bin/passwd/pwd_check.c