[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#71497: marked as done (ssh vs. INET6)



Your message dated Fri, 5 Sep 2003 01:10:13 +0100
with message-id <20030905001013.GA2117@riva.ucam.org>
and subject line ssh vs. INET6
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at maintonly) by bugs.debian.org; 12 Sep 2000 21:51:04 +0000
>From chip@perlsupport.com Tue Sep 12 16:51:04 2000
Return-path: <chip@perlsupport.com>
Received: from nat-su-33.valinux.com (tytlal.su.valinux.com) [::ffff:198.186.202.33] 
	by master.debian.org with esmtp (Exim 3.12 1 (Debian))
	id 13YxxI-0006o4-00; Tue, 12 Sep 2000 16:51:04 -0500
Received: from chip by tytlal.su.valinux.com with local (Exim 3.16 #1 (Debian))
	id 13YxwU-0001WO-00; Tue, 12 Sep 2000 14:50:14 -0700
From: Chip Salzenberg <chip@tytlal.perlsupport.com>
Subject: ssh vs. INET6
To: maintonly@bugs.debian.org
X-Mailer: bug 3.3.4
Message-Id: <E13YxwU-0001WO-00@tytlal.su.valinux.com>
Sender: Chip Salzenberg <chip@perlsupport.com>
Date: Tue, 12 Sep 2000 14:50:14 -0700
Delivered-To: maintonly@bugs.debian.org

Package: ssh
Version: 1:2.2.0p1-1.1
Severity: wishlist

FYI, this patch makes ssh work even if compiled to support IPv6.
(Limiting to IPv4 is not a long-term solution. :-))


Index: channels.c
--- channels.c.prev
+++ channels.c	Tue Sep 12 14:30:41 2000
@@ -1741,5 +1741,9 @@ x11_create_display_inet(int screen_numbe
 			sock = socket(ai->ai_family, SOCK_STREAM, 0);
 			if (sock < 0) {
-				if (errno != EINVAL) {
+				if (errno != EINVAL
+#ifdef EAFNOSUPPORT
+				    && errno != EAFNOSUPPORT
+#endif
+				    ) {
 					error("socket: %.100s", strerror(errno));
 					return NULL;

---------------------------------------
Received: (at 71497-done) by bugs.debian.org; 5 Sep 2003 00:10:16 +0000
>From cjwatson@flatline.org.uk Thu Sep 04 19:10:14 2003
Return-path: <cjwatson@flatline.org.uk>
Received: from rhenium.btinternet.com [194.73.73.93] 
	by master.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 19v4B4-0002qP-00; Thu, 04 Sep 2003 19:10:14 -0500
Received: from host81-129-36-235.in-addr.btopenworld.com ([81.129.36.235] helo=riva.lab.dotat.at)
	by rhenium.btinternet.com with esmtp (Exim 3.22 #23)
	id 19v4B3-00046K-00
	for 71497-done@bugs.debian.org; Fri, 05 Sep 2003 01:10:13 +0100
Received: from cjwatson by riva.lab.dotat.at with local (Exim 3.35 #1 (Debian))
	for 71497-done@bugs.debian.org
	id 19v4B3-0000Z2-00; Fri, 05 Sep 2003 01:10:13 +0100
Date: Fri, 5 Sep 2003 01:10:13 +0100
From: Colin Watson <cjwatson@debian.org>
To: 71497-done@bugs.debian.org
Subject: Re: ssh vs. INET6
Message-ID: <20030905001013.GA2117@riva.ucam.org>
References: <E13YxwU-0001WO-00@tytlal.su.valinux.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <E13YxwU-0001WO-00@tytlal.su.valinux.com>
User-Agent: Mutt/1.3.28i
Delivered-To: 71497-done@bugs.debian.org
X-Spam-Status: No, hits=-15.5 required=4.0
	tests=BAYES_20,EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT,
	      REFERENCES,REPLY_WITH_QUOTES,USER_AGENT_MUTT
	autolearn=ham version=2.53-bugs.debian.org_2003_8_27
X-Spam-Level: 
X-Spam-Checker-Version: SpamAssassin 2.53-bugs.debian.org_2003_8_27 (1.174.2.15-2003-03-30-exp)

On Tue, Sep 12, 2000 at 02:50:14PM -0700, Chip Salzenberg wrote:
> Package: ssh
> Version: 1:2.2.0p1-1.1
> Severity: wishlist
> 
> FYI, this patch makes ssh work even if compiled to support IPv6.
> (Limiting to IPv4 is not a long-term solution. :-))
> 
> 
> Index: channels.c
> --- channels.c.prev
> +++ channels.c	Tue Sep 12 14:30:41 2000
> @@ -1741,5 +1741,9 @@ x11_create_display_inet(int screen_numbe
>  			sock = socket(ai->ai_family, SOCK_STREAM, 0);
>  			if (sock < 0) {
> -				if (errno != EINVAL) {
> +				if (errno != EINVAL
> +#ifdef EAFNOSUPPORT
> +				    && errno != EAFNOSUPPORT
> +#endif
> +				    ) {
>  					error("socket: %.100s", strerror(errno));
>  					return NULL;

This was fixed a long time ago, in OpenSSH 2.3.0p1.

RCS file: /cvs/openssh/channels.c,v
Working file: channels.c
[...]
revision 1.44
date: 2000/10/14 01:37:19;  author: djm;  state: Exp;  lines: +1 -1
- (djm) Add workaround for Linux 2.4's gratuitious errno change. Patch
  from Martin Johansson <fatbob@acc.umu.se>

Cheers,

-- 
Colin Watson                                  [cjwatson@flatline.org.uk]



Reply to: