From 65991092f7d7460390529a012cb7e7893799fc34 Mon Sep 17 00:00:00 2001 From: Alexandros Naskos Date: Sun, 4 Oct 2020 19:22:34 +0300 Subject: [PATCH] Correctly set uid and gid to void instead of null on wasi --- lib/std/child_process.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/std/child_process.zig b/lib/std/child_process.zig index e706302ebd..52e9ac99ba 100644 --- a/lib/std/child_process.zig +++ b/lib/std/child_process.zig @@ -105,8 +105,8 @@ pub const ChildProcess = struct { .term = null, .env_map = null, .cwd = null, - .uid = if (builtin.os.tag == .windows) {} else null, - .gid = if (builtin.os.tag == .windows) {} else null, + .uid = if (builtin.os.tag == .windows or builtin.os.tag == .wasi) {} else null, + .gid = if (builtin.os.tag == .windows or builtin.os.tag == .wasi) {} else null, .stdin = null, .stdout = null, .stderr = null,