From 049eb4cb89e83bc8ee46f9fbb8b2b33607e864a5 Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Tue, 9 Nov 2021 19:27:39 -0500 Subject: [PATCH] libroot/os: Remove B_CLONEABLE_AREA protection check. Due to how API versions work, it seems this flag is still applied on a lot of applications, as some have some rather old API versions (actually API versions themselves may not be working quite right, to boot.) All relevant software should have had a chance to be recompiled on or after beta2, so we reduce the flag's automatic application back just to BeOS applications. --- src/system/libroot/os/area.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/system/libroot/os/area.c b/src/system/libroot/os/area.c index 5f057a79eb..340839f1fe 100644 --- a/src/system/libroot/os/area.c +++ b/src/system/libroot/os/area.c @@ -16,9 +16,7 @@ create_area(const char *name, void **address, uint32 addressSpec, size_t size, uint32 lock, uint32 protection) { if (__gABIVersion < B_HAIKU_ABI_GCC_2_HAIKU) - protection |= B_EXECUTE_AREA; - if (__gAPIVersion < B_HAIKU_VERSION_1_PRE_BETA_2) - protection |= B_CLONEABLE_AREA; + protection |= B_EXECUTE_AREA | B_CLONEABLE_AREA; return _kern_create_area(name, address, addressSpec, size, lock, protection); }