From cd738d49875c0b8450c41060545436be9ddc43ba Mon Sep 17 00:00:00 2001 From: Daniel Imms <2193314+Tyriar@users.noreply.github.com> Date: Wed, 29 Jun 2022 11:42:34 -0700 Subject: [PATCH] Don't treat uid/gid 0 as undefined --- src/unixTerminal.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/unixTerminal.ts b/src/unixTerminal.ts index 118b5bcc6..b8c1a9425 100644 --- a/src/unixTerminal.ts +++ b/src/unixTerminal.ts @@ -67,8 +67,8 @@ export class UnixTerminal extends Terminal { this._cols = opt.cols || DEFAULT_COLS; this._rows = opt.rows || DEFAULT_ROWS; - const uid = opt.uid || -1; - const gid = opt.gid || -1; + const uid = opt.uid ?? -1; + const gid = opt.gid ?? -1; const closeFDs = opt.closeFDs || false; const env: IProcessEnv = assign({}, opt.env);