Skip to content

Commit f04c17d

Browse files
Darwin: check for EACCES when spawning processes (#155)
This was mistakenly not in sync with the Linux implementation.
1 parent f9881e5 commit f04c17d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Subprocess/Platforms/Subprocess+Darwin.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ extension Configuration {
433433
}
434434
// Spawn error
435435
if spawnError != 0 {
436-
if spawnError == ENOENT {
436+
if spawnError == ENOENT || spawnError == EACCES {
437437
// Move on to another possible path
438438
continue
439439
}

0 commit comments

Comments
 (0)