Bug 229360
| Summary: | xterm unsets $TMPDIR before executing command/shell | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | James Ralston <ralston> |
| Component: | xterm | Assignee: | Miroslav Lichvar <mlichvar> |
| Status: | CLOSED ERRATA | QA Contact: | |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 8 | CC: | martin.gutschelhofer, peter, sandmann |
| Target Milestone: | --- | Keywords: | Reopened |
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | 231-1.fc8 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2008-01-24 21:45:31 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: | |||
| Bug Depends On: | 246063 | ||
| Bug Blocks: | |||
|
Description
James Ralston
2007-02-20 16:35:39 UTC
Actually, it doesn't matter whether xterm Dynamic linker is unsetting the variable since the xterm binary has setgid utempter. Without the setgid xterm won't have a record in utmp. But you can put the setting to .bashrc. *** Bug 243069 has been marked as a duplicate of this bug. *** This *is* a bug, and should be re-opened as such. "Putting the setting to .bashrc" is a kludgy workaround, not a fix, especially for variables like LD_LIBRARY_PATH which a user might want set for the entire session. In fact, all the documentation recommends *against* setting variables in .bashrc & /etc/bashrc. One better solution would be to use a wrapper script which restores the environment. Is there any way to get records in utmp using e.g. SELinux context rather than group? (Another workaround is to use module-init-tools and add "module update" to /etc/bashrc). The problem was recently discussed at fedora-devel list. A request against libutempter to drop the setgid requirement is filed at bug #246063. *** Bug 296131 has been marked as a duplicate of this bug. *** xterm-231-1.fc8 has been pushed to the Fedora 8 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update xterm' xterm-231-1.fc7 has been pushed to the Fedora 7 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update xterm' xterm-231-1.fc8 has been pushed to the Fedora 8 stable repository. If problems still persist, please make note of it in this bug report. xterm-231-1.fc7 has been pushed to the Fedora 7 stable repository. If problems still persist, please make note of it in this bug report. |