Bug 8006 - rsh does not accept data on input stream
Summary: rsh does not accept data on input stream
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 2.2.7-RELEASE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 1998-09-21 08:40 UTC by Philippe Causse
Modified: 1998-12-10 01:24 UTC (History)
0 users

See Also:


Attachments
file.diff (502 bytes, patch)
1998-09-21 08:40 UTC, Philippe Causse
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.