]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
support/shell-container.c: Return 127 if execve fails
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 24 Mar 2020 18:36:23 +0000 (15:36 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 25 Mar 2020 12:59:50 +0000 (09:59 -0300)
Reviewed-by: DJ Delorie <dj@redhat.com>
(cherry picked from commit 5fce0e095bc413f908f472074c2235198cd76bf4)

support/shell-container.c

index ee3224dfd0687272bd2f184bfa939d28f3d4d1c3..abf40e4167ba54ce2037279c8986b7023df983e6 100644 (file)
@@ -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);