| Summary: | /etc/rc.d/init.d/functions will die if /etc/profile.d/lang.sh doesn't exist. | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Denys Vlasenko <dvlasenk> |
| Component: | initscripts | Assignee: | Bill Nottingham <notting> |
| Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 15 | CC: | iarlyy, jonathan, notting, plautrba, rvokal, vpavlin |
| Target Milestone: | --- | Keywords: | Triaged |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-07-20 10:25:37 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
I can't reproduce this: [root@nostromo ~]# cd /etc/profile.d/ [root@nostromo profile.d]# mv lang.sh lang.cow [root@nostromo profile.d]# SYSTEMCTL_SKIP_REDIRECT=1 /etc/rc.d/init.d/sshd status openssh-daemon (pid 990) is running... Are you running with any non-default settings? (set -e, for example?) Furthermore, it's in the same package, so it's not a condition that would normally happen. |
The problem is here: if [ -z "${NOLOCALE:-}" ] && [ -z "${LANGSH_SOURCED:-}" ] && [ -f /etc/sysconfig/i18n ] ; then . /etc/profile.d/lang.sh 2>/dev/null # avoid propagating LANGSH_SOURCED any further unset LANGSH_SOURCED fi We source /etc/profile.d/lang.sh without checking that it exists. If it doesn't, then not just this one line doesn't execute, ENTIRE script is aborted.