From nobody  Thu Aug 20 13:21:36 1998
Received: (from nobody@localhost)
          by hub.freebsd.org (8.8.8/8.8.8) id NAA17183;
          Thu, 20 Aug 1998 13:21:36 -0700 (PDT)
          (envelope-from nobody)
Message-Id: <199808202021.NAA17183@hub.freebsd.org>
Date: Thu, 20 Aug 1998 13:21:36 -0700 (PDT)
From: howard@ee.utah.edu
To: freebsd-gnats-submit@freebsd.org
Subject: rshd gives "broken pipe" at 2.2.7
X-Send-Pr-Version: www-1.0

>Number:         7697
>Category:       misc
>Synopsis:       rshd gives "broken pipe" at 2.2.7
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Aug 20 13:30:00 PDT 1998
>Closed-Date:    Fri Sep 25 17:29:21 PDT 1998
>Last-Modified:  Fri Sep 25 17:30:26 PDT 1998
>Originator:     Walt Howard
>Release:        2.2.7-RELEASE
>Organization:
Univ of Utah Elec Eng Dept
>Environment:
FreeBSD labserv1.elen.utah.edu 2.2.7-RELEASE FreeBSD 2.2.7-RELEASE #0: Wed Jul 22 08:48:29 GMT 1998     root@builder.cdrom.com:/usr/src/sys/compile/GENERIC  i386
>Description:
Using rsh command from another machine gets back only a "Broken pipe"
message instead of the output from the command.  This is from a fresh
install off the net.
>How-To-Repeat:
FreeBSD1> rsh FreeBSD2 date
>Fix:
Version of rshd from 2.2.2-RELEASE works correctly.  I did not have the
source from that to compare to the current version, but there are
differences running "strings" on the executables.

I am willing to chase it down if I can get access to the source of the
earlier version.
>Release-Note:
>Audit-Trail:

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.
 
 
 
State-Changed-From-To: open->closed 
State-Changed-By: des 
State-Changed-When: Fri Sep 25 17:29:21 PDT 1998 
State-Changed-Why:  
For the umpteen zillionth time, this was fixed by jkh on 1998/07/24 
in revision 1.9.2.9 of src/libexec/rshd/rshd.c. 
>Unformatted:
