Removed redundant assigns of stdin/out/err to conn prior to ptmx setup

This commit is contained in:
Russ Magee 2020-01-30 17:14:56 -08:00
parent 399babd62a
commit bebfd1cb1f
3 changed files with 3 additions and 4 deletions

View file

@ -307,9 +307,6 @@ func runShellAs(who, hname, ttype, cmd string, interactive bool, conn *xsnet.Con
} else {
c.SysProcAttr.Credential = &syscall.Credential{Uid: uid, Gid: gid}
}
c.Stdin = conn
c.Stdout = conn
c.Stderr = conn
// Start the command with a pty.
ptmx, err := pty.Start(c) // returns immediately with ptmx file