summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-07-28 21:26:21 +0200
committerLennart Poettering <lennart@poettering.net>2011-07-28 21:26:21 +0200
commit3e2519b49a1ed57dd997bbc4a195efc2205499f3 (patch)
tree25f2ba9169642b012ddb6250c2d65da3c0bdd453
parentc1ad8a9ac9290e6f0dd9323b4af9f994c4585372 (diff)
parentd837d937c589e0fb11e4da8d6173ec14f121d1fa (diff)
downloaddbus-3e2519b49a1ed57dd997bbc4a195efc2205499f3.tar.gz
Merge branch 'dbus-1.4'
-rw-r--r--bus/config-parser.c4
-rw-r--r--dbus/dbus-sysdeps-unix.c16
2 files changed, 15 insertions, 5 deletions
diff --git a/bus/config-parser.c b/bus/config-parser.c
index c9dbdf93..f9432555 100644
--- a/bus/config-parser.c
+++ b/bus/config-parser.c
@@ -3395,6 +3395,10 @@ static const char *test_system_service_dir_matches[] =
"/testusr/testshare/dbus-1/system-services",
#endif
DBUS_DATADIR"/dbus-1/system-services",
+#ifdef DBUS_UNIX
+ "/lib/dbus-1/system-services",
+#endif
+
#ifdef DBUS_WIN
NULL,
#endif
diff --git a/dbus/dbus-sysdeps-unix.c b/dbus/dbus-sysdeps-unix.c
index 3594c630..5cd1e10f 100644
--- a/dbus/dbus-sysdeps-unix.c
+++ b/dbus/dbus-sysdeps-unix.c
@@ -3626,12 +3626,18 @@ _dbus_get_standard_system_servicedirs (DBusList **dirs)
}
/*
- * add configured datadir to defaults
- * this may be the same as an xdg dir
- * however the config parser should take
- * care of duplicates
+ * Add configured datadir to defaults. This may be the same as one
+ * of the XDG directories. However, the config parser should take
+ * care of the duplicates.
+ *
+ * Also, append /lib as counterpart of /usr/share on the root
+ * directory (the root directory does not know /share), in order to
+ * facilitate early boot system bus activation where /usr might not
+ * be available.
*/
- if (!_dbus_string_append (&servicedir_path, DBUS_DATADIR":"))
+ if (!_dbus_string_append (&servicedir_path,
+ DBUS_DATADIR":"
+ "/lib:"))
goto oom;
if (!_dbus_split_paths_and_append (&servicedir_path,