Use DBusString for all relocation and install-root code
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Wed, 30 Sep 2015 15:35:49 +0000 (16:35 +0100)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Mon, 5 Oct 2015 15:29:29 +0000 (16:29 +0100)
commitf830e14d3030c580bd2856f72bcffc0261387216
treec0c5dd8af192f1749b89f226c22fff0d35ea6e44
parenta52034266a60fb471e759a6c3349b11ce6494fdf
Use DBusString for all relocation and install-root code

This means we handle OOM correctly, and makes it obvious
that we are not overflowing buffers. This change does not
affect the actual content of the strings.

Instead of redefining DBUS_DATADIR to be a function call
(which hides the fact that DBUS_DATADIR is used),
this patch makes each use explicit: DBUS_DATADIR
is always the #define from configure or cmake, before
replacing the prefix.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=83539
Tested-by: Ralf Habacker <ralf.habacker@freenet.de>
Reviewed-by: Ralf Habacker <ralf.habacker@freenet.de>
bus/activation.c
bus/config-parser.c
dbus/dbus-sysdeps-util-unix.c
dbus/dbus-sysdeps-util-win.c
dbus/dbus-sysdeps-win.c
dbus/dbus-sysdeps-win.h
dbus/dbus-sysdeps.h
test/manual-paths.c