Bug 8006

Summary: rsh does not accept data on input stream
Product: Base System Reporter: Philippe Causse <Philippe.Causse>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 2.2.7-RELEASE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Philippe Causse 1998-09-21 08:40:00 UTC
rsh does not read the standard input.
This prevents from doing transfers over rsh like:
	 tar cf - /dir | rsh host tar xvf -

Fix: By running a diff from 2.2.6-RELEASE agains 2.2.7-RELEASE, I easily
found
the bug.  It was a local declaration of variable s in function doit().

Below is a diff for applying the correction.
How-To-Repeat: 
On a 2.2.7-R box, try:  echo foobar | rsh localhost cat
It fails to print foobar, as expected.
Comment 1 Steve Price freebsd_committer freebsd_triage 1998-10-03 23:45:53 UTC
Responsible Changed
From-To: gnats-admin->freebsd-bugs

Misfiled PR. 

Comment 2 tedm 1998-10-05 09:35:31 UTC
I also noticed this bug for the same reason. (wanted to make network backups)
Can we put this in errata file?  I enabled rexecd for now and changed the
jobs around.

It would be even better if the corrected binary could be placed up on
ftp.cdrom.com, for those that don't have room to install the source tree.
Comment 3 Steve Price freebsd_committer freebsd_triage 1998-12-10 01:23:35 UTC
State Changed
From-To: open->closed

This has already been fixed in -current and -stable.