From mi@xxx.video-collage.com  Mon Mar  3 05:34:21 1997
Received: from xxx.video-collage.com (xxx.video-collage.com [199.232.254.68])
          by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id FAA29664
          for <FreeBSD-gnats-submit@freebsd.org>; Mon, 3 Mar 1997 05:34:18 -0800 (PST)
Received: (from mi@localhost) by xxx.video-collage.com (8.8.5/8.8.3) id IAA14020; Mon, 3 Mar 1997 08:40:20 -0500 (EST)
Message-Id: <199703031340.IAA14020@xxx.video-collage.com>
Date: Mon, 3 Mar 1997 08:40:20 -0500 (EST)
From: Mikhail Teterin <mi@xxx.video-collage.com>
Reply-To: mi@aldan.ziplink.net
To: FreeBSD-gnats-submit@freebsd.org
Subject: new (1.2.17) ssh port did not work for me
X-Send-Pr-Version: 3.2

>Number:         2855
>Category:       ports
>Synopsis:       new version of ssh would _always_ give "rresvport: protocol not available"
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    torstenb
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar  3 05:40:01 PST 1997
>Closed-Date:    Thu Mar 6 14:02:45 PST 1997
>Last-Modified:  Thu Mar  6 14:04:38 PST 1997
>Originator:     Mikhail Teterin
>Release:        FreeBSD 2.1.5-STABLE i386
>Organization:
Video-Collage, Inc.
>Environment:

	ssh-1.2.16 was just fine

>Description:

	ssh-1.2.17 would always say (in verbose mode):

	SSH Version 1.2.17 [i386-unknown-freebsd2.1.6], protocol version 1.5.
	Compiled with RSAREF.
	Reading configuration data /usr/local/etc/ssh_config
	Applying options for *
	ssh_connect: getuid 105 geteuid 0 anon 0
	Connecting to 199.232.255.49 port 22.
	rresvport: Protocol not available

>How-To-Repeat:

	Nothing special, but it may well be, that the problem is just with
	the OS (2.1.5 version). Just build it and try to run it.

>Fix:
	
	The following trick makes ssh compile for an alternative way of
	connecting, which worked for me. Since the comment in the code
	indicates, that the original way is _for old FreeBSD_, may be port
	maintainer will make C-preprocessor identify the OS version and act
	accordingly?

--- sshconnect.c	Mon Mar  3 08:21:36 1997
+++ sshconnect.c.orig	Mon Mar  3 08:29:11 1997
@@ -239,7 +239,7 @@
     {
       struct sockaddr_in sin;
       int p;
-#if defined(__FreeBSD__)  && !defined(SOCKS) && defined(USE_RRESVPORT)
+#if defined(__FreeBSD__)  && !defined(SOCKS)
 	p = 1023;	/* Compat with old FreeBSD */
       sock = rresvport(&p);
       if (sock < 0)

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports->torstenb 
Responsible-Changed-By: asami 
Responsible-Changed-When: Tue Mar 4 00:05:31 PST 1997 
Responsible-Changed-Why:  
Maintainer. 
State-Changed-From-To: open->closed 
State-Changed-By: torstenb 
State-Changed-When: Thu Mar 6 14:02:45 PST 1997 
State-Changed-Why:  
works with 2.2 and 3.0  
>Unformatted:
