diff options
author | rillig <rillig@NetBSD.org> | 2021-02-22 16:28:20 +0000 |
---|---|---|
committer | Cameron Katri <me@cameronkatri.com> | 2021-04-13 15:28:33 -0400 |
commit | c6dcb4c432995d92e9e40b8dfce534fa4e47dd0b (patch) | |
tree | 7c9264ba1f33269842e388f069080ede75b69568 /hunt/huntd/huntd.6 | |
parent | e7cd658820ba2c7119b98f1c8959b6fbe8e379b7 (diff) | |
download | bsdgames-darwin-c6dcb4c432995d92e9e40b8dfce534fa4e47dd0b.tar.gz bsdgames-darwin-c6dcb4c432995d92e9e40b8dfce534fa4e47dd0b.tar.zst bsdgames-darwin-c6dcb4c432995d92e9e40b8dfce534fa4e47dd0b.zip |
cgram: properly handle input errors
On both NetBSD and Cygwin, a missing /usr/bin/fortune would previously
continue since popen does not return an error (as /bin/sh is found and
can be executed), so the next chance to catch an error is pclose. At
that point, the shell has already printed an informative error message
about what happened (or what didn't happen), so that cgram does not need
to print an error by itself.
Diffstat (limited to 'hunt/huntd/huntd.6')
0 files changed, 0 insertions, 0 deletions