]> git.ipfire.org Git - thirdparty/coreutils.git/commit
runcon: distinguish runcon specific errors in exit status
authorPádraig Brady <P@draigBrady.com>
Sat, 27 Aug 2022 16:50:20 +0000 (17:50 +0100)
committerPádraig Brady <P@draigBrady.com>
Sat, 27 Aug 2022 16:50:20 +0000 (17:50 +0100)
commitea3ee6df279bdde37389406b66ec242647fd07c4
tree011643fa783bc8fd22e09dbb18367a02d45a38c9
parente3d60359380e9b472623c18995b3a77a32c56a67
runcon: distinguish runcon specific errors in exit status

* src/runcon.c: Use EXIT_CANCELED (125) instead of EXIT_FAILURE (1),
so that errors specific to runcon can be distinguished,
from those of the invoked program.
* doc/coreutils.texi (runcon invocation): Fix the Exit status
description to say we return 125 (not 127) for internal errors.
* tests/misc/runcon-no-reorder.sh: Add a test case.
doc/coreutils.texi
src/runcon.c
tests/misc/runcon-no-reorder.sh