* [hurd,commited] hurd: Try shell in posix_spawn* only in compat mode
@ 2020-12-26 14:13 Samuel Thibault
0 siblings, 0 replies; only message in thread
From: Samuel Thibault @ 2020-12-26 14:13 UTC (permalink / raw)
To: libc-alpha; +Cc: Samuel Thibault, commit-hurd
Reported by Bruno Haible <bruno@clisp.org>
---
sysdeps/mach/hurd/spawni.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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. */
--
2.29.2
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-12-26 14:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-26 14:13 [hurd,commited] hurd: Try shell in posix_spawn* only in compat mode Samuel Thibault
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).