_dbus_get_tmpdir: be thread-safe
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Tue, 27 Aug 2013 13:35:47 +0000 (14:35 +0100)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Thu, 29 Aug 2013 11:30:02 +0000 (12:30 +0100)
commitd98a587f766e00f50244cfa75008e75ee4af20f6
tree4a48b590036bcbe7c406194cbfdc95537868aee0
parentced50f8be12ca91274c64bbf5455138e5f2ae7c3
_dbus_get_tmpdir: be thread-safe

Sharing a static variable between threads is not safe in general,
and this function is used in the shared libdbus (for nonce files),
so it can't rely on being single-threaded.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=68610
Reviewed-by: Ralf Habacker <ralf.habacker@freenet.de>
bus/activation.c
dbus/dbus-internals.h
dbus/dbus-nonce.c
dbus/dbus-sysdeps-unix.c
dbus/dbus-sysdeps-win.c