]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
upstream: correct recently broken comments
authorderaadt@openbsd.org <deraadt@openbsd.org>
Tue, 7 Jul 2020 02:47:21 +0000 (02:47 +0000)
committerDarren Tucker <dtucker@dtucker.net>
Wed, 15 Jul 2020 05:08:10 +0000 (15:08 +1000)
OpenBSD-Commit-ID: 964d9a88f7de1d0eedd3f8070b43fb6e426351f1

monitor.c
session.c

index 325ad95e08ff0ae4fbb5f4b5446e7fb8102df527..0107a7ebabcabe0541411fb80e8ab45deacecbc9 100644 (file)
--- a/monitor.c
+++ b/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 <provos@citi.umich.edu>
  * Copyright 2002 Markus Friedl <markus@openbsd.org>
@@ -1568,7 +1568,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 */
index ede983564f35600e81d894c8db427d115e98334e..3f7488cded37420546f08af2b5109f56cf720cb6 100644 (file)
--- a/session.c
+++ b/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 <ylo@cs.hut.fi>, Espoo, Finland
  *                    All rights reserved
@@ -644,7 +644,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. */