commit 54537285caa651573e9a86a642ba52f453373abb (tree)
parent e74fd3ce555c675235fa65fa3647caeb4757b4cd
Author: Meghan Denny <hello@nektro.net>
Date: Fri, 12 Jun 2026 03:42:51 -0700
std.Io.Threaded: remove trailing slash from default_PATH entry
previously this would have spawnPosix to try launching eg `/bin//foo`
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/std/Io/Threaded.zig b/lib/std/Io/Threaded.zig
@@ -1563,7 +1563,7 @@ pub const splat_buffer_size = 64;
/// NtWaitForMultipleObjects accepts. We use this value also for poll() on
/// posix systems.
const poll_buffer_len = 64;
-pub const default_PATH = "/usr/local/bin:/bin/:/usr/bin";
+pub const default_PATH = "/usr/local/bin:/bin:/usr/bin";
/// There are multiple kernel bugs being worked around with retries.
const max_windows_kernel_bug_retries = 13;