Bug 107567 - rdist only passes 40 lines of environment to rsh
rdist only passes 40 lines of environment to rsh
Product: Red Hat Enterprise Linux 2.1
Classification: Red Hat
Component: rdist (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Phil Knirsch
Depends On:
  Show dependency treegraph
Reported: 2003-10-20 14:16 EDT by Stephen Walton
Modified: 2015-03-04 20:12 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2003-10-21 09:11:01 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Script which runs ssh (69 bytes, text/plain)
2003-10-20 14:18 EDT, Stephen Walton
no flags Details

  None (edit)
Description Stephen Walton 2003-10-20 14:16:57 EDT
Description of problem:

rdist 6.1.5 imposes an arbitrary limit of 40 lines of environment which is
passed to rsh or its equivalent specified via -P.  The URL contains a patch
(which appears to be about three years old) which fixes the problem.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.  Create more than 40 lines of environment variables in a shell
2.  Run "rdist -P $HOME/debug-ssh -c foobar remotehost" where "foobar" is some
file or directory and $HOME/debug-ssh is attached as a bash script.
3.  Examine the log file "logfile" created by debug-ssh.
Actual results:

You will see that only 40 lines of environment variables are passed to the ssh
spawned by rdist.

Expected results:

All environment variables from the parent shell should be passed to rsh/ssh by

Additional info:

I spent three days tracking this one down.  It prevents ssh-agent from working
properly with rdist, because if one's environment variable becomes longer than
40 values, the values created by `eval ssh-agent` may not get passed to ssh by
rdist.  Thus a script which uses ssh-agent, ssh-add, and rdist will inexplicably
work sometimes and fail other times.
Comment 1 Stephen Walton 2003-10-20 14:18:17 EDT
Created attachment 95315 [details]
Script which runs ssh

This script creates a "logfile" which contains the output of a "printenv"
command followed by the error output of "ssh -vvv".
Comment 2 Phil Knirsch 2003-10-21 09:11:01 EDT
If you would have looked at all open rdist bugs you could have saved these 3
days. ;-) Bug 85634 exactly describes the same problem and the latest rawhide
version of rdist has already a fix for it.

Read ya, Phil
Comment 3 John Flanagan 2004-04-21 20:29:36 EDT
An errata has been issued which should help the problem described in this bug report. 
This report is therefore being closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files, please follow the link below. You may reopen 
this bug report if the solution does not work for you.


Note You need to log in before you can comment on or make changes to this bug.