From 726f1f53346c71076876de6e7ff054850758c1d2 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Tue, 7 Jul 2020 02:47:22 +0000 Subject: correct recently broken comments --- usr.bin/ssh/monitor.c | 4 ++-- usr.bin/ssh/session.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'usr.bin/ssh') diff --git a/usr.bin/ssh/monitor.c b/usr.bin/ssh/monitor.c index e297f41f9e1..2a091b3f2dd 100644 --- a/usr.bin/ssh/monitor.c +++ b/usr.bin/ssh/monitor.c @@ -1,4 +1,4 @@ -/* $OpenBSD: monitor.c,v 1.211 2020/07/05 23:59:45 djm Exp $ */ +/* $OpenBSD: monitor.c,v 1.212 2020/07/07 02:47:21 deraadt Exp $ */ /* * Copyright 2002 Niels Provos * Copyright 2002 Markus Friedl @@ -1324,7 +1324,7 @@ mm_answer_pty(struct ssh *ssh, int sock, struct sshbuf *m) if (fd0 != 0) error("%s: fd0 %d != 0", __func__, fd0); - /* only need pty master side */ + /* slave side of pty is not needed */ close(s->ttyfd); s->ttyfd = s->ptyfd; /* no need to dup() because nobody closes ptyfd */ diff --git a/usr.bin/ssh/session.c b/usr.bin/ssh/session.c index 6f581aa5cbe..b910d18ab25 100644 --- a/usr.bin/ssh/session.c +++ b/usr.bin/ssh/session.c @@ -1,4 +1,4 @@ -/* $OpenBSD: session.c,v 1.323 2020/07/05 23:59:45 djm Exp $ */ +/* $OpenBSD: session.c,v 1.324 2020/07/07 02:47:21 deraadt Exp $ */ /* * Copyright (c) 1995 Tatu Ylonen , Espoo, Finland * All rights reserved @@ -613,7 +613,7 @@ do_exec_pty(struct ssh *ssh, Session *s, const char *command) } s->pid = pid; - /* Parent. Close the child side of the pseudo tty. */ + /* Parent. Close the slave side of the pseudo tty. */ close(ttyfd); /* Enter interactive session. */ -- cgit v1.2.3