diff options
author | djm@openbsd.org <djm@openbsd.org> | 2020-07-05 23:59:45 +0000 |
---|---|---|
committer | Darren Tucker <dtucker@dtucker.net> | 2020-07-15 15:07:42 +1000 |
commit | 6d755706a0059eb9e2d63517f288b75cbc3b4701 (patch) | |
tree | adb003b1adcea270f4480baa4ff83d495b3478f3 /monitor.c | |
parent | b0c1e8384d5e136ebdf895d1434aea7dd8661a1c (diff) |
upstream: some language improvements; ok markus
OpenBSD-Commit-ID: 939d787d571b4d5da50b3b721fd0b2ac236acaa8
Diffstat (limited to 'monitor.c')
-rw-r--r-- | monitor.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: monitor.c,v 1.210 2020/03/13 03:17:07 djm Exp $ */ | 1 | /* $OpenBSD: monitor.c,v 1.211 2020/07/05 23:59:45 djm Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright 2002 Niels Provos <provos@citi.umich.edu> | 3 | * Copyright 2002 Niels Provos <provos@citi.umich.edu> |
4 | * Copyright 2002 Markus Friedl <markus@openbsd.org> | 4 | * Copyright 2002 Markus Friedl <markus@openbsd.org> |
@@ -1568,7 +1568,7 @@ mm_answer_pty(struct ssh *ssh, int sock, struct sshbuf *m) | |||
1568 | if (fd0 != 0) | 1568 | if (fd0 != 0) |
1569 | error("%s: fd0 %d != 0", __func__, fd0); | 1569 | error("%s: fd0 %d != 0", __func__, fd0); |
1570 | 1570 | ||
1571 | /* slave is not needed */ | 1571 | /* only need pty master side */ |
1572 | close(s->ttyfd); | 1572 | close(s->ttyfd); |
1573 | s->ttyfd = s->ptyfd; | 1573 | s->ttyfd = s->ptyfd; |
1574 | /* no need to dup() because nobody closes ptyfd */ | 1574 | /* no need to dup() because nobody closes ptyfd */ |