Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Mar 1997 08:40:20 -0500 (EST)
From:      Mikhail Teterin <mi@xxx.video-collage.com>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/2855: new (1.2.17) ssh port did not work for me
Message-ID:  <199703031340.IAA14020@xxx.video-collage.com>
Resent-Message-ID: <199703031340.FAA29920@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         2855
>Category:       ports
>Synopsis:       new version would _always_ give "rresvport: protocol not available"
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-ports
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar  3 05:40:01 PST 1997
>Last-Modified:
>Originator:     Mikhail Teterin
>Organization:
Video-Collage, Inc.
>Release:        FreeBSD 2.1.5-STABLE i386
>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)

>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199703031340.IAA14020>