mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-12 14:20:13 +00:00
support/shell-container.c: Return 127 if execve fails
Reviewed-by: DJ Delorie <dj@redhat.com>
(cherry picked from commit 5fce0e095b
)
This commit is contained in:
parent
6b19792c9c
commit
55e77b7d81
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user