From d35cd38960fdab458889afe09a485fdd2a4f8e6c Mon Sep 17 00:00:00 2001 From: Jake Petroules Date: Mon, 18 Aug 2025 22:29:10 -0700 Subject: [PATCH] Darwin: check for EACCES when spawning processes This was mistakenly not in sync with the Linux implementation. --- Sources/Subprocess/Platforms/Subprocess+Darwin.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Subprocess/Platforms/Subprocess+Darwin.swift b/Sources/Subprocess/Platforms/Subprocess+Darwin.swift index cd04d640..99fe532d 100644 --- a/Sources/Subprocess/Platforms/Subprocess+Darwin.swift +++ b/Sources/Subprocess/Platforms/Subprocess+Darwin.swift @@ -433,7 +433,7 @@ extension Configuration { } // Spawn error if spawnError != 0 { - if spawnError == ENOENT { + if spawnError == ENOENT || spawnError == EACCES { // Move on to another possible path continue }