forked from pool/systemd
c446b5bdf8
- Enable Predictable Network interface names (bnc#829526). - version 207, distribution specific changes follow, for overall release notes see NEWS. - Fixed: * Failed at step PAM spawning /usr/lib/systemd/systemd: Operation not permitted * Fix shutdown hang "a stop job is running for Session 1 of user root" that was reported in opensuse-factory list. - systemd-sysctl no longer reads /etc/sysctl.conf however backward compatbility is to be provides by a symlink created at %post. - removed previously disabled upstream patches (merged): 0002-core-mount.c-mount_dump-don-t-segfault-if-mount-is-n.patch, 0004-disable-the-cgroups-release-agent-when-shutting-down.patch, 0005-cgroups-agent-remove-ancient-fallback-code-turn-conn.patch, 0006-suppress-status-message-output-at-shutdown-when-quie.patch, - removed upstream merged patches: exclude-dev-from-tmpfiles.patch, logind_update_state_file_after_generating_....patch - Add systemd-pam_config.patch: use correct include name for PAM configuration on openSUSE. - Add exclude-dev-from-tmpfiles.patch: allow to exclude /dev from tmpfiles (bnc#835813). OBS-URL: https://build.opensuse.org/request/show/198848 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd?expand=0&rev=155
52 lines
1.9 KiB
Diff
52 lines
1.9 KiB
Diff
From: Frederic Crozat <fcrozat@suse.com>
|
|
Date: Tue, 4 Dec 2012 16:51:32 +0000
|
|
Subject: handle root_uses_lang value in /etc/sysconfig/language
|
|
|
|
handle ROOT_USES_LANG=ctype (bnc#792182).
|
|
---
|
|
src/core/locale-setup.c | 27 +++++++++++++++++++++++++++
|
|
1 file changed, 27 insertions(+)
|
|
|
|
--- systemd-206_git201308300826.orig/src/core/locale-setup.c
|
|
+++ systemd-206_git201308300826/src/core/locale-setup.c
|
|
@@ -72,6 +72,11 @@ int locale_setup(char ***environment) {
|
|
char **env;
|
|
char *variables[_VARIABLE_MAX] = {};
|
|
int r = 0, i;
|
|
+#ifdef HAVE_SYSV_COMPAT
|
|
+ char _cleanup_free_ *root_uses_lang;
|
|
+
|
|
+ zero(root_uses_lang);
|
|
+#endif
|
|
|
|
if (detect_container(NULL) <= 0) {
|
|
r = parse_env_file("/proc/cmdline", WHITESPACE,
|
|
@@ -118,6 +123,27 @@ int locale_setup(char ***environment) {
|
|
if (r < 0 && r != -ENOENT)
|
|
log_warning("Failed to read /etc/locale.conf: %s", strerror(-r));
|
|
}
|
|
+#ifdef HAVE_SYSV_COMPAT
|
|
+ if (r <= 0 &&
|
|
+ (r = parse_env_file("/etc/sysconfig/language", NEWLINE,
|
|
+ "ROOT_USES_LANG", &root_uses_lang,
|
|
+ "RC_LANG", &variables[VARIABLE_LANG],
|
|
+ NULL)) < 0) {
|
|
+ if (r != -ENOENT)
|
|
+ log_warning("Failed to read /etc/sysconfig/language: %s", strerror(-r));
|
|
+
|
|
+ } else {
|
|
+ if (!root_uses_lang || (root_uses_lang && !strcaseeq(root_uses_lang,"yes"))) {
|
|
+ if (root_uses_lang && strcaseeq(root_uses_lang,"ctype"))
|
|
+ variables[VARIABLE_LC_CTYPE]=variables[VARIABLE_LANG];
|
|
+ else
|
|
+ free(variables[VARIABLE_LANG]);
|
|
+
|
|
+ variables[VARIABLE_LANG]=strdup("POSIX");
|
|
+ }
|
|
+ }
|
|
+
|
|
+#endif
|
|
|
|
for (i = 0; i < _VARIABLE_MAX; i++) {
|
|
if (!variables[i])
|