View | Details | Raw Unified | Return to bug 2945 | Differences between
and this patch

Collapse All | Expand All

(-)openssh-7.9p1/openbsd-compat/bsd-openpty.c.dist (-1 / +18 lines)
Lines 123-134 Link Here
123
123
124
	/*
124
	/*
125
	 * Try to push the appropriate streams modules, as described
125
	 * Try to push the appropriate streams modules, as described
126
	 * in Solaris pts(7).
126
	 * in Solaris pts(7), but only if they haven't been already pushed
127
         * by XPG4 libc
127
	 */
128
	 */
129
# if defined(__sun) && defined(__SVR4)
130
        if (ioctl(*aslave, I_FIND, "ptem") == 0) {
131
# endif
128
	ioctl(*aslave, I_PUSH, "ptem");
132
	ioctl(*aslave, I_PUSH, "ptem");
133
# if defined(__sun) && defined(__SVR4)
134
        }
135
        if (ioctl(*aslave, I_FIND, "ldterm") == 0) {
136
# endif
129
	ioctl(*aslave, I_PUSH, "ldterm");
137
	ioctl(*aslave, I_PUSH, "ldterm");
138
# if defined(__sun) && defined(__SVR4)
139
        }
140
# endif
130
# ifndef __hpux
141
# ifndef __hpux
142
# if defined(__sun) && defined(__SVR4)
143
        if (ioctl(*aslave, I_FIND, "ttcompat") == 0) {
144
# endif
131
	ioctl(*aslave, I_PUSH, "ttcompat");
145
	ioctl(*aslave, I_PUSH, "ttcompat");
146
# if defined(__sun) && defined(__SVR4)
147
        }
148
# endif
132
# endif /* __hpux */
149
# endif /* __hpux */
133
150
134
	return (0);
151
	return (0);

Return to bug 2945