diff options
author | Colin Watson <cjwatson@debian.org> | 2019-10-09 22:59:48 +0100 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2019-10-09 22:59:48 +0100 |
commit | 4213eec74e74de6310c27a40c3e9759a08a73996 (patch) | |
tree | e97a6dcafc6763aea7c804e4e113c2750cb1400d /openbsd-compat/bsd-openpty.c | |
parent | 102062f825fb26a74295a1c089c00c4c4c76b68a (diff) | |
parent | cdf1d0a9f5d18535e0a18ff34860e81a6d83aa5c (diff) |
Import openssh_8.1p1.orig.tar.gz
Diffstat (limited to 'openbsd-compat/bsd-openpty.c')
-rw-r--r-- | openbsd-compat/bsd-openpty.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/openbsd-compat/bsd-openpty.c b/openbsd-compat/bsd-openpty.c index e8ad542f8..123a9be56 100644 --- a/openbsd-compat/bsd-openpty.c +++ b/openbsd-compat/bsd-openpty.c | |||
@@ -121,6 +121,15 @@ openpty(int *amaster, int *aslave, char *name, struct termios *termp, | |||
121 | return (-1); | 121 | return (-1); |
122 | } | 122 | } |
123 | 123 | ||
124 | # if defined(I_FIND) && defined(__SVR4) | ||
125 | /* | ||
126 | * If the streams modules have already been pushed then there | ||
127 | * is no more work to do here. | ||
128 | */ | ||
129 | if (ioctl(*aslave, I_FIND, "ptem") != 0) | ||
130 | return 0; | ||
131 | # endif | ||
132 | |||
124 | /* | 133 | /* |
125 | * Try to push the appropriate streams modules, as described | 134 | * Try to push the appropriate streams modules, as described |
126 | * in Solaris pts(7). | 135 | * in Solaris pts(7). |