Bug 464788
| Summary: | rsh/tcsh: shell configuration files are not loaded on target machine | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 4 | Reporter: | Kalle Kiviaho <kalle.kiviaho> | ||||
| Component: | setup | Assignee: | Ondrej Vasik <ovasik> | ||||
| Status: | CLOSED DUPLICATE | QA Contact: | BaseOS QE <qe-baseos-auto> | ||||
| Severity: | high | Docs Contact: | |||||
| Priority: | medium | ||||||
| Version: | 4.7 | CC: | atkac, ehedgren, jjneely | ||||
| Target Milestone: | rc | Keywords: | Regression | ||||
| Target Release: | --- | ||||||
| Hardware: | All | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2008-11-05 14:09:11 UTC | Type: | --- | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
|
Description
Kalle Kiviaho
2008-09-30 14:40:55 UTC
Problem seem to come from the added lines in csh.cshrc in setup-2.5.37-1.7:
if (! $?loginsh) then
if ($?prompt) then
These prevent /etc/profile.d to be parsed when using rsh. That should be the case?
(In reply to comment #1) > Problem seem to come from the added lines in csh.cshrc in setup-2.5.37-1.7: > > if (! $?loginsh) then > if ($?prompt) then > > These prevent /etc/profile.d to be parsed when using rsh. That should be the > case? Right you are. Main problem is that /etc/profile.d/* scripts are no longer executed when you run non-interactive shell. It seems that fix for bug #202468 should be reverted. reassigning to proper component This bugzilla has Keywords: Regression. Since no regressions are allowed between releases, it is also being proposed as a blocker for this release. Please resolve ASAP. Thanks for report. Current situation after update is IMHO more broken than previous passing string to noninteractive shells. Solution could be to throw away stdout / stderr output for noninteractive shells for processing profile.d scripts ... will try to find out proper solution for both bugs Created attachment 322566 [details]
Fix for noninteractive shell issues for tcsh
I guess both issues could be solved together by redirecting stdout and stderr to /dev/null for noninteractive shells ... tried following patch and it works for me in both cases.
*** This bug has been marked as a duplicate of bug 457243 *** |