mirror of
				https://gogs.blitter.com/RLabs/xs
				synced 2024-08-14 10:26:42 +00:00 
			
		
		
		
	Removed redundant assigns of stdin/out/err to conn prior to ptmx setup
This commit is contained in:
		
							parent
							
								
									52decd5b75
								
							
						
					
					
						commit
						4b66e87c74
					
				
					 3 changed files with 3 additions and 4 deletions
				
			
		
							
								
								
									
										2
									
								
								go.mod
									
										
									
									
									
								
							
							
						
						
									
										2
									
								
								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 | ||||
|  |  | |||
							
								
								
									
										2
									
								
								go.sum
									
										
									
									
									
								
							
							
						
						
									
										2
									
								
								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= | ||||
|  |  | |||
|  | @ -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 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue