]> git.ipfire.org Git - thirdparty/coreutils.git/commit
runcon: fix inconsistent exit status upon write error
authorPádraig Brady <P@draigBrady.com>
Tue, 27 Sep 2022 20:39:31 +0000 (21:39 +0100)
committerPádraig Brady <P@draigBrady.com>
Wed, 28 Sep 2022 14:06:11 +0000 (15:06 +0100)
commit4c1d30771db005dea023e328d19cb90512b079fd
treef8aef2a6206295565b4954ac12162501390bba4a
parentf69743604bfe386eace383d01483abc63ba2df8a
runcon: fix inconsistent exit status upon write error

* src/runcon.c (main): Call initialize_exit_failure(),
so we use an appropriate exit status upon failure to close stdout.
This should have been part of recent commit ea3ee6df.
* tests/misc/help-version.sh: Adjust test case accordingly.
src/runcon.c
tests/misc/help-version.sh