From owner-freebsd-bugs Fri Sep 25 09:00:18 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA22368 for freebsd-bugs-outgoing; Fri, 25 Sep 1998 09:00:18 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA22303 for ; Fri, 25 Sep 1998 09:00:06 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id JAA06425; Fri, 25 Sep 1998 09:00:01 -0700 (PDT) Date: Fri, 25 Sep 1998 09:00:01 -0700 (PDT) Message-Id: <199809251600.JAA06425@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.ORG From: David James Subject: Re: misc/7697: rshd gives "broken pipe" at 2.2.7 Reply-To: David James Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR misc/7697; it has been noted by GNATS. From: David James To: freebsd-gnats-submit@freebsd.org, howard@ee.utah.edu Cc: Subject: Re: misc/7697: rshd gives "broken pipe" at 2.2.7 Date: Fri, 25 Sep 1998 16:35:41 +0100 The code broke between rshd.c revs 1.9.2.7 and 1.9.2.8. The following patch undoes the damage: *** rshd.c 1998/07/19 11:02:20 1.9.2.8 --- rshd.c 1998/09/25 15:32:56 *************** *** 304,310 **** (void) alarm(0); if (port != 0) { int lport = IPPORT_RESERVED - 1; ! int s = rresvport(&lport); if (s < 0) { syslog(LOG_ERR, "can't get stderr port: %m"); exit(1); --- 304,310 ---- (void) alarm(0); if (port != 0) { int lport = IPPORT_RESERVED - 1; ! s = rresvport(&lport); if (s < 0) { syslog(LOG_ERR, "can't get stderr port: %m"); exit(1); -- email: dwj@agw.bt.co.uk, phone: +44 171 250 6469, fax: +44 171 336 0214 post: pp8.5a, 207 Old Street, London EC1V 9PS, U.K. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message