From bebfd1cb1fe1730c70565fb8d90236acca660c67 Mon Sep 17 00:00:00 2001 From: Russ Magee Date: Thu, 30 Jan 2020 17:14:56 -0800 Subject: [PATCH] Removed redundant assigns of stdin/out/err to conn prior to ptmx setup --- go.mod | 2 +- go.sum | 2 ++ xsd/xsd.go | 3 --- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/go.mod b/go.mod index 7fca59c..9860336 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.12 require ( blitter.com/go/cryptmt v1.0.0 - blitter.com/go/goutmp v1.0.1 + blitter.com/go/goutmp v1.0.2 blitter.com/go/herradurakex v1.0.0 blitter.com/go/kyber v0.0.0-20200130200857-6f2021cb88d9 blitter.com/go/mtwist v1.0.1 // indirect diff --git a/go.sum b/go.sum index 5d792ba..23bb532 100644 --- a/go.sum +++ b/go.sum @@ -4,6 +4,8 @@ blitter.com/go/cryptmt v1.0.0 h1:n+cNP/ReZrNe/w5FbD8DSfv0Wpj48nxhmMoLEk4hPXs= blitter.com/go/cryptmt v1.0.0/go.mod h1:tdME2J3O4agaDAYIYNQzzuB28yVGnPSMmV3a/ucSU84= blitter.com/go/goutmp v1.0.1 h1:jBqtp6pDwSbF4QEC3DjNfyaS8Nv5dFCOyaTfSbbb7TU= blitter.com/go/goutmp v1.0.1/go.mod h1:gtlbjC8xGzMk/Cf0BpnVltSa3awOqJ+B5WAxVptTMxk= +blitter.com/go/goutmp v1.0.2 h1:oCc/dt9TlTOP2kvmX1Y7J/wSQUhywjcyF101jXuLxZ8= +blitter.com/go/goutmp v1.0.2/go.mod h1:gtlbjC8xGzMk/Cf0BpnVltSa3awOqJ+B5WAxVptTMxk= blitter.com/go/herradurakex v1.0.0 h1:6XaxY+JLT1HUWPF0gYJnjX3pVjrw4YhYZEzZ1U0wkyc= blitter.com/go/herradurakex v1.0.0/go.mod h1:m3+vYZX+2dDjdo+n/HDnXEYJX9pwmNeQLgAfJM8mtxw= blitter.com/go/kyber v0.0.0-20200130200857-6f2021cb88d9 h1:D45AnrNphtvczBXRp5JQicZRTgaK/Is5bgPDDvRKhTc= diff --git a/xsd/xsd.go b/xsd/xsd.go index e83ae9d..e20096d 100755 --- a/xsd/xsd.go +++ b/xsd/xsd.go @@ -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