Skip to content

Commit

Permalink
Merge pull request #548 from microsoft/547
Browse files Browse the repository at this point in the history
Don't treat uid/gid 0 as undefined
  • Loading branch information
Tyriar authored Jun 29, 2022
2 parents 1674722 + cd738d4 commit 0f293e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/unixTerminal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 0f293e3

Please # to comment.