From owner-freebsd-ports Mon Mar 3 05:40:06 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id FAA29940 for ports-outgoing; Mon, 3 Mar 1997 05:40:06 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id FAA29920; Mon, 3 Mar 1997 05:40:03 -0800 (PST) Resent-Date: Mon, 3 Mar 1997 05:40:03 -0800 (PST) Resent-Message-Id: <199703031340.FAA29920@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-ports Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, mi@aldan.ziplink.net 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 ; 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 Reply-To: mi@aldan.ziplink.net To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: ports/2855: new (1.2.17) ssh port did not work for me Sender: owner-ports@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >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: