LibCore: Don't use execvpe on Solaris

This commit is contained in:
nipos 2023-02-25 19:07:37 +01:00 committed by Andrew Kaster
parent dcb95dba17
commit 72accd3a24
Notes: sideshowbarker 2024-07-19 16:55:15 +09:00

View File

@ -1197,7 +1197,7 @@ ErrorOr<void> exec(StringView filename, ReadonlySpan<StringView> arguments, Sear
envp[environment->size()] = nullptr;
if (search_in_path == SearchInPath::Yes && !filename.contains('/')) {
# if defined(AK_OS_MACOS) || defined(AK_OS_FREEBSD)
# if defined(AK_OS_MACOS) || defined(AK_OS_FREEBSD) || defined(AK_OS_SOLARIS)
// These BSDs don't support execvpe(), so we'll have to manually search the PATH.
ScopedValueRollback errno_rollback(errno);