rpcgen(1): default to "STDIN" as input file when compiling to headers.
authordv <dv@openbsd.org>
Mon, 22 Jul 2024 17:55:18 +0000 (17:55 +0000)
committerdv <dv@openbsd.org>
Mon, 22 Jul 2024 17:55:18 +0000 (17:55 +0000)
commit134d7b1ef94ae6f4f6ffb58b17fcd2643c6ae9ac
treea7f5c31a56451aba0954cf82e3e75928d42aa957
parent50deb69b417221a631850e8b225390b17f126098
rpcgen(1): default to "STDIN" as input file when compiling to headers.

FreeBSD, NetBSD, and GNU all use a variation of "STDIN" as the
default input filename when compiling to header files (-h) to prevent
a NULL-pointer deference. Adopt a similar approach.

ok millert@
usr.bin/rpcgen/rpc_main.c