- (stevesk) nchan.c: we use X/Open Sockets on HP-UX now so shutdown(2)

returns ENOTCONN vs. EINVAL for socket not connected; remove EINVAL
   check. ok Lutz Jaenicke
This commit is contained in:
Kevin Steves 2001-09-18 16:08:24 +00:00
Родитель cc7aafc7a4
Коммит 871f662cb6
2 изменённых файлов: 6 добавлений и 3 удалений

Просмотреть файл

@ -8,6 +8,9 @@
put somewhere sane. Add Ssh.bin to manifest.
- (djm) Make smartcard support conditional in Redhat RPM spec
- (bal) LICENCE update. Has not been done in a while.
- (stevesk) nchan.c: we use X/Open Sockets on HP-UX now so shutdown(2)
returns ENOTCONN vs. EINVAL for socket not connected; remove EINVAL
check. ok Lutz Jaenicke
- OpenBSD CVS Sync
- stevesk@cvs.openbsd.org 2001/09/17 17:57:57
[scp.1 scp.c sftp.1 sftp.c]
@ -6501,4 +6504,4 @@
- Wrote replacements for strlcpy and mkdtemp
- Released 1.0pre1
$Id: ChangeLog,v 1.1540 2001/09/18 05:56:57 mouring Exp $
$Id: ChangeLog,v 1.1541 2001/09/18 16:08:24 stevesk Exp $

Просмотреть файл

@ -534,10 +534,10 @@ chan_shutdown_read(Channel *c)
/*
* shutdown(sock, SHUT_READ) may return ENOTCONN if the
* write side has been closed already. (bug on Linux)
* HP-UX will return EINVAL.
* HP-UX may return ENOTCONN also.
*/
if (shutdown(c->sock, SHUT_RD) < 0
&& (errno != ENOTCONN && errno != EINVAL))
&& errno != ENOTCONN)
error("channel %d: chan_shutdown_read: "
"shutdown() failed for fd%d [i%d o%d]: %.100s",
c->self, c->sock, c->istate, c->ostate,