1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-20 18:56:39 +02:00

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.
This commit is contained in:
Pádraig Brady
2022-08-27 17:50:20 +01:00
parent e3d6035938
commit ea3ee6df27
3 changed files with 24 additions and 21 deletions

View File

@@ -17276,8 +17276,9 @@ Set range @var{range} in the target security context.
Exit status:
@display
125 if @command{runcon} itself fails
126 if @var{command} is found but cannot be invoked
127 if @command{runcon} itself fails or if @var{command} cannot be found
127 if @var{command} cannot be found
the exit status of @var{command} otherwise
@end display