Bug 91403
| Summary: | xinetd uses inappropriate locale settings | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Retired] Red Hat Linux | Reporter: | Paul Gear <paul> | ||||||
| Component: | xinetd | Assignee: | Jay Fenlason <fenlason> | ||||||
| Status: | CLOSED RAWHIDE | QA Contact: | Brock Organ <borgan> | ||||||
| Severity: | medium | Docs Contact: | |||||||
| Priority: | medium | ||||||||
| Version: | 9 | CC: | jfeeney | ||||||
| Target Milestone: | --- | ||||||||
| Target Release: | --- | ||||||||
| Hardware: | All | ||||||||
| OS: | Linux | ||||||||
| Whiteboard: | |||||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | 2003-08-11 17:08: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: | |||||||||
| Attachments: |
|
||||||||
|
Description
Paul Gear
2003-05-22 12:17:25 UTC
Created attachment 91888 [details]
Proposed patch for /etc/rc.d/init.d/xinetd
Created attachment 91889 [details] Second proposed patch for /etc/rc.d/init.d/xinetd On second thoughts, this patch is probably more flexible. It would allow those of us who want the old behaviour to put XINETD_UNSET_LANG=1 in our /etc/sysconfig/xinetd, and the rest could have it the new way. I would be happy for XINETD_UNSET_LANG=0 to be the default, or even for it to be unset and undocumented. As athompso said in bug 43762, we need an easy way to get the traditional behaviour, and one that doesn't require manual intervention every time xinetd gets upgraded. I came up with a slightly different patch, which I included in xinetd-2.3.12-1.10.0 (now in Raw Hide). In /etc/sysconfig/xinetd, I added an XINETD_LANG paramater, which can be set to a locale, or the string "none". If it's "none", all locale environment variables are cleared before xinetd is run. Otherwise, xinetd runs in the specified locale. The default configuration file sets it to "en_US", so default users get the old behavior. I don't know if xinetd-2.3.12-1.10.0 will run on a Red Hat Linux 9 system, but you can certainly download the SRPM and do a rpmbuild --rebuild on it. There's a typo in the comments in /etc/init.d/xinetd (synconfig vs. sysconfig), but otherwise looks good. I've thrown a comment in 43762 to point people this way. |