diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2020-12-26 15:12:04 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2020-12-26 15:12:04 +0100 |
commit | 13adfa34aff03fd9f1c1612b537a0d736ddb6c2b (patch) | |
tree | 38f683a00538fb9716e5fb259efa18594b068d4a | |
parent | f380868f6dcfdeae8d449d556298d9c41012ed8d (diff) | |
download | glibc-13adfa34aff03fd9f1c1612b537a0d736ddb6c2b.tar.gz glibc-13adfa34aff03fd9f1c1612b537a0d736ddb6c2b.tar.xz glibc-13adfa34aff03fd9f1c1612b537a0d736ddb6c2b.zip |
hurd: Try shell in posix_spawn* only in compat mode
Reported by Bruno Haible <bruno@clisp.org>
-rw-r--r-- | sysdeps/mach/hurd/spawni.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/mach/hurd/spawni.c b/sysdeps/mach/hurd/spawni.c index 178b271e4e..2aeed683fe 100644 --- a/sysdeps/mach/hurd/spawni.c +++ b/sysdeps/mach/hurd/spawni.c @@ -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. */ |