mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-11 11:50:06 +00:00
hurd: Try shell in posix_spawn* only in compat mode
Reported by Bruno Haible <bruno@clisp.org>
This commit is contained in:
parent
f380868f6d
commit
13adfa34af
@ -838,7 +838,7 @@ __spawni (pid_t *pid, const char *file,
|
||||
err = exec (execfile);
|
||||
__mach_port_deallocate (__mach_task_self (), execfile);
|
||||
|
||||
if (err == ENOEXEC)
|
||||
if ((err == ENOEXEC) && (xflags & SPAWN_XFLAGS_TRY_SHELL) != 0)
|
||||
{
|
||||
/* The file is accessible but it is not an executable file.
|
||||
Invoke the shell to interpret it as a script. */
|
||||
|
Loading…
Reference in New Issue
Block a user