pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/security/openssh Add a patch from https://bugzilla.min...
details: https://anonhg.NetBSD.org/pkgsrc/rev/b1383fdccf7d
branches: trunk
changeset: 531459:b1383fdccf7d
user: taca <taca%pkgsrc.org@localhost>
date: Tue Jul 31 02:29:38 2007 +0000
description:
Add a patch from https://bugzilla.mindrot.org/show_bug.cgi?id=1306.
Fix nasty "error: channel 0: chan_read_failed for istate 3" message.
Bump PKGREVISION.
diffstat:
security/openssh/Makefile | 3 ++-
security/openssh/distinfo | 3 ++-
security/openssh/patches/patch-ba | 25 +++++++++++++++++++++++++
3 files changed, 29 insertions(+), 2 deletions(-)
diffs (56 lines):
diff -r b786377202ad -r b1383fdccf7d security/openssh/Makefile
--- a/security/openssh/Makefile Mon Jul 30 23:19:08 2007 +0000
+++ b/security/openssh/Makefile Tue Jul 31 02:29:38 2007 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.180 2007/07/04 20:54:58 jlam Exp $
+# $NetBSD: Makefile,v 1.181 2007/07/31 02:29:38 taca Exp $
DISTNAME= openssh-4.6p1
PKGNAME= openssh-4.6.1
+PKGREVISION= 1
SVR4_PKGNAME= ossh
CATEGORIES= security
MASTER_SITES= ftp://ftp.openssh.com/pub/OpenBSD/OpenSSH/portable/ \
diff -r b786377202ad -r b1383fdccf7d security/openssh/distinfo
--- a/security/openssh/distinfo Mon Jul 30 23:19:08 2007 +0000
+++ b/security/openssh/distinfo Tue Jul 31 02:29:38 2007 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.62 2007/03/18 12:38:45 taca Exp $
+$NetBSD: distinfo,v 1.63 2007/07/31 02:29:39 taca Exp $
SHA1 (openssh-4.6p1-hpn12v16.diff.gz) = a10ed53ad92e2e3106da7050c3b0076a2cd1c0ca
RMD160 (openssh-4.6p1-hpn12v16.diff.gz) = 421e2c189c2e9b378f6ee3944183355f9f18d5e8
@@ -29,3 +29,4 @@
SHA1 (patch-av) = 00f54c3fae7318b278b16bd0b01881a90bd31365
SHA1 (patch-aw) = 2a88b7563c6f52163c6c5f716e437ecaea613a30
SHA1 (patch-ax) = a6708b956341ff373835a6789541c7547b3b85e5
+SHA1 (patch-ba) = 35a4f544b52403bf9b3f0943d3f975fc8f350173
diff -r b786377202ad -r b1383fdccf7d security/openssh/patches/patch-ba
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/security/openssh/patches/patch-ba Tue Jul 31 02:29:38 2007 +0000
@@ -0,0 +1,25 @@
+$NetBSD: patch-ba,v 1.1 2007/07/31 02:29:39 taca Exp $
+
+# https://bugzilla.mindrot.org/show_bug.cgi?id=1306
+
+--- channels.c.orig 2007-07-31 09:48:58.000000000 +0900
++++ channels.c
+@@ -1471,14 +1471,13 @@ static int
+ channel_handle_rfd(Channel *c, fd_set *readset, fd_set *writeset)
+ {
+ char buf[CHAN_RBUF];
+- int len;
++ int len, force;
+
+- if (c->rfd != -1 &&
+- (c->detach_close || FD_ISSET(c->rfd, readset))) {
++ force = c->isatty && c->detach_close && c->istate != CHAN_INPUT_CLOSED;
++ if (c->rfd != -1 && (force || FD_ISSET(c->rfd, readset))) {
+ errno = 0;
+ len = read(c->rfd, buf, sizeof(buf));
+- if (len < 0 && (errno == EINTR ||
+- (errno == EAGAIN && !(c->isatty && c->detach_close))))
++ if (len < 0 && (errno == EINTR || (errno == EAGAIN && !force)))
+ return 1;
+ #ifndef PTY_ZEROREAD
+ if (len <= 0) {
Home |
Main Index |
Thread Index |
Old Index