| 1 |
s390x: |
| 2 |
|
| 3 |
=== RUN TestSSH |
| 4 |
ssh_test.go:14: OpenPTY failed: open /dev/pts/17179869184: no such file or directory |
| 5 |
|
| 6 |
ppc64el: |
| 7 |
|
| 8 |
=== RUN TestSSH |
| 9 |
ssh_test.go:14: OpenPTY failed: inappropriate ioctl for device |
| 10 |
|
| 11 |
--- a/term/termios.go |
| 12 |
+++ b/term/termios.go |
| 13 |
@@ -284,12 +284,12 @@ func (p *PTY) PTSName() (string, error) |
| 14 |
|
| 15 |
// PTSNumber return the pty number. |
| 16 |
func (p *PTY) PTSNumber() (uint, error) { |
| 17 |
- var ptyno uint |
| 18 |
+ var ptyno uint32 |
| 19 |
_, _, errno := syscall.Syscall(syscall.SYS_IOCTL, uintptr(p.Master.Fd()), uintptr(TIOCGPTN), uintptr(unsafe.Pointer(&ptyno))) |
| 20 |
if errno != 0 { |
| 21 |
return 0, errno |
| 22 |
} |
| 23 |
- return ptyno, nil |
| 24 |
+ return uint(ptyno), nil |
| 25 |
} |
| 26 |
|
| 27 |
// Winsz Fetches the current terminal windowsize. |
| 28 |
@@ -332,7 +332,7 @@ func OpenPTY() (*PTY, error) { |
| 29 |
} |
| 30 |
|
| 31 |
// unlock pty slave |
| 32 |
- var unlock int // 0 => Unlock |
| 33 |
+ var unlock int32 // 0 => Unlock |
| 34 |
if _, _, errno := syscall.Syscall(syscall.SYS_IOCTL, uintptr(master.Fd()), uintptr(TIOCSPTLCK), uintptr(unsafe.Pointer(&unlock))); errno != 0 { |
| 35 |
master.Close() |
| 36 |
return nil, errno |