mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-27 15:54:22 +02:00
- (stevesk) pty.c: use __hpux to identify HP-UX.
This commit is contained in:
parent
67e21e1eb2
commit
85b3db6bca
@ -10,6 +10,7 @@
|
|||||||
- (bal) auth2-skey.c - Checked in. Missing from portable tree.
|
- (bal) auth2-skey.c - Checked in. Missing from portable tree.
|
||||||
- (bal) Reworked NEWS-OS and NeXT ports to extract waitpid() and
|
- (bal) Reworked NEWS-OS and NeXT ports to extract waitpid() and
|
||||||
setsid() into more common files
|
setsid() into more common files
|
||||||
|
- (stevesk) pty.c: use __hpux to identify HP-UX.
|
||||||
|
|
||||||
20001029
|
20001029
|
||||||
- (stevesk) Fix typo in auth.c: USE_PAM not PAM
|
- (stevesk) Fix typo in auth.c: USE_PAM not PAM
|
||||||
|
7
pty.c
7
pty.c
@ -117,12 +117,15 @@ pty_allocate(int *ptyfd, int *ttyfd, char *namebuf, int namebuflen)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
#ifndef HAVE_CYGWIN
|
#ifndef HAVE_CYGWIN
|
||||||
/* Push the appropriate streams modules, as described in Solaris pts(7). */
|
/*
|
||||||
|
* Push the appropriate streams modules, as described in Solaris pts(7).
|
||||||
|
* HP-UX pts(7) doesn't have ttcompat module.
|
||||||
|
*/
|
||||||
if (ioctl(*ttyfd, I_PUSH, "ptem") < 0)
|
if (ioctl(*ttyfd, I_PUSH, "ptem") < 0)
|
||||||
error("ioctl I_PUSH ptem: %.100s", strerror(errno));
|
error("ioctl I_PUSH ptem: %.100s", strerror(errno));
|
||||||
if (ioctl(*ttyfd, I_PUSH, "ldterm") < 0)
|
if (ioctl(*ttyfd, I_PUSH, "ldterm") < 0)
|
||||||
error("ioctl I_PUSH ldterm: %.100s", strerror(errno));
|
error("ioctl I_PUSH ldterm: %.100s", strerror(errno));
|
||||||
#ifndef _HPUX_SOURCE
|
#ifndef __hpux
|
||||||
if (ioctl(*ttyfd, I_PUSH, "ttcompat") < 0)
|
if (ioctl(*ttyfd, I_PUSH, "ttcompat") < 0)
|
||||||
error("ioctl I_PUSH ttcompat: %.100s", strerror(errno));
|
error("ioctl I_PUSH ttcompat: %.100s", strerror(errno));
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user