summaryrefslogtreecommitdiffstats
path: root/remote/modules/systemd/systemd-openslx.patch
diff options
context:
space:
mode:
authorJonathan Bauer2013-12-20 17:47:01 +0100
committerJonathan Bauer2013-12-20 17:47:01 +0100
commit808559e1cad1747825984174248f4fdf5803ae8e (patch)
tree6a69f5c4cfffcf9400a15f684d9658c67aaba9ff /remote/modules/systemd/systemd-openslx.patch
parent[rootfs-stage32] added 'getent' to stage32 (diff)
parentMerge branch 'master' of dnbd3:openslx-ng/tm-scripts (diff)
downloadtm-scripts-808559e1cad1747825984174248f4fdf5803ae8e.tar.gz
tm-scripts-808559e1cad1747825984174248f4fdf5803ae8e.tar.xz
tm-scripts-808559e1cad1747825984174248f4fdf5803ae8e.zip
Merge branch 'master' of git.openslx.org:openslx-ng/tm-scripts
Diffstat (limited to 'remote/modules/systemd/systemd-openslx.patch')
-rw-r--r--remote/modules/systemd/systemd-openslx.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/remote/modules/systemd/systemd-openslx.patch b/remote/modules/systemd/systemd-openslx.patch
new file mode 100644
index 00000000..36de20b0
--- /dev/null
+++ b/remote/modules/systemd/systemd-openslx.patch
@@ -0,0 +1,26 @@
+--- core/main.c 2013-05-09 15:45:50.000000000 +0200
++++ core/main.c 2013-12-19 14:46:03.020362993 +0100
+@@ -1477,9 +1477,9 @@
+ /* Set up PATH unless it is already set */
+ setenv("PATH",
+ #ifdef HAVE_SPLIT_USR
+- "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
++ "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" ":/opt/openslx/usr/sbin:/opt/openslx/usr/bin:/opt/openslx/sbin:/opt/openslx/bin",
+ #else
+- "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin",
++ "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin" ":/opt/openslx/usr/sbin:/opt/openslx/usr/bin:/opt/openslx/sbin:/opt/openslx/bin",
+ #endif
+ arg_running_as == SYSTEMD_SYSTEM);
+
+@@ -1513,6 +1513,11 @@
+ unsetenv("LISTEN_FDS");
+ unsetenv("LISTEN_PID");
+
++ /* OpenSLX: "Fix" libc/nss/nss_ldap deadlock
++ * when not using nscd */
++ setenv("HOME", "/", 1);
++ setenv("USER", "root", 1);
++
+ /* All other variables are left as is, so that clients
+ * can still read them via /proc/1/environ */
+ }