mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
Disable posix_spawn on OpenBSD
OpenBSD has a posix_spawn implementation which fails to return ENOEXEC on a shebangless script, causing us to fail the shebangless tests. Disable posix_spawn on OpenBSD.
This commit is contained in:
parent
3ed8a57bc5
commit
971073d429
1 changed files with 5 additions and 0 deletions
|
@ -271,6 +271,11 @@ const char *gnu_get_libc_version();
|
|||
// Disallow posix_spawn entirely on glibc <= 2.24.
|
||||
// See #8021.
|
||||
static bool allow_use_posix_spawn() {
|
||||
// OpenBSD's posix_spawn returns status 127, instead of erroring with ENOEXEC, when faced with a
|
||||
// shebangless script. Disable posix_spawn on OpenBSD.
|
||||
#if defined(__OpenBSD__)
|
||||
return false;
|
||||
#endif
|
||||
bool result = true;
|
||||
// uClibc defines __GLIBC__.
|
||||
#if defined(__GLIBC__) && !defined(__UCLIBC__)
|
||||
|
|
Loading…
Reference in a new issue