mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-29 06:13:20 +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.
|
// Disallow posix_spawn entirely on glibc <= 2.24.
|
||||||
// See #8021.
|
// See #8021.
|
||||||
static bool allow_use_posix_spawn() {
|
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;
|
bool result = true;
|
||||||
// uClibc defines __GLIBC__.
|
// uClibc defines __GLIBC__.
|
||||||
#if defined(__GLIBC__) && !defined(__UCLIBC__)
|
#if defined(__GLIBC__) && !defined(__UCLIBC__)
|
||||||
|
|
Loading…
Reference in a new issue