]> git.pond.sub.org Git - empserver/commit
fairland: Make write_newcap_script() failure fatal
authorMarkus Armbruster <armbru@pond.sub.org>
Sat, 25 Jul 2020 07:03:03 +0000 (09:03 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Tue, 5 Jan 2021 09:41:36 +0000 (10:41 +0100)
commit1faab45815396c32a38f95f98be49e3ca25401a5
tree438b11e53f74dc137acace80fe358e4ff0f66d0f
parentb28090a6b3250c9e99ed3c73f99194fdccec241f
fairland: Make write_newcap_script() failure fatal

When write_newcap_script() fails, it complains to stderr and fails.
main() doesn't bother to check for failure.  Has always been that way.
Fix main() to check.  Also adjust write_newcap_script() to return one
on success, zero on failure, like the other functions do.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
src/util/fairland.c