From 5fce0e095bc413f908f472074c2235198cd76bf4 Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Tue, 24 Mar 2020 15:36:23 -0300 Subject: support/shell-container.c: Return 127 if execve fails Reviewed-by: DJ Delorie --- support/shell-container.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'support') diff --git a/support/shell-container.c b/support/shell-container.c index 72950bc..d1112d4 100644 --- a/support/shell-container.c +++ b/support/shell-container.c @@ -238,7 +238,7 @@ run_command_array (char **argv) fprintf (stderr, "sh: execing %s failed: %s", argv[0], strerror (errno)); - exit (1); + exit (127); } waitpid (pid, &status, 0); -- cgit v1.1