INNER CODE UNIT · Go

_

moul/sshportal · testserver.go:47

				_ = s.Exit(1)                                      // #nosec
				return
			}
			go func() {
				for win := range winCh {
					_, _, _ = syscall.Syscall(syscall.SYS_IOCTL, f.Fd(), uintptr(syscall.TIOCSWINSZ),
						uintptr(unsafe.Pointer(&struct{ h, w, x, y uint16 }{uint16(win.Height), uint16(win.Width), 0, 0}))) // #nosec
				}
			}()
			go func() {
				// stdin
				_, _ = io.Copy(f, s) // #nosec
			}()
			// stdout
			_, _ = io.Copy(s, f) // #nosec
			cmdErr = cmd.Wait()
		} else {
			// cmd.Stdin = s

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…