1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-07 06:43:00 +03:00

support/shell-container.c: Return 127 if execve fails

Reviewed-by: DJ Delorie <dj@redhat.com>
This commit is contained in:
Adhemerval Zanella
2020-03-24 15:36:23 -03:00
parent 07d16a6deb
commit 5fce0e095b

View File

@@ -238,7 +238,7 @@ run_command_array (char **argv)
fprintf (stderr, "sh: execing %s failed: %s", fprintf (stderr, "sh: execing %s failed: %s",
argv[0], strerror (errno)); argv[0], strerror (errno));
exit (1); exit (127);
} }
waitpid (pid, &status, 0); waitpid (pid, &status, 0);