Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Sep 1998 09:00:01 -0700 (PDT)
From:      David James <dwj@agw.bt.co.uk>
To:        freebsd-bugs@FreeBSD.ORG
Subject:   Re: misc/7697: rshd gives "broken pipe" at 2.2.7
Message-ID:  <199809251600.JAA06425@freefall.freebsd.org>

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

The following reply was made to PR misc/7697; it has been noted by GNATS.

From: David James <dwj@agw.bt.co.uk>
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



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