various thread-safety issues involving static variables
Submitted by Simon McVittie
Assigned to Simon McVittie
Created attachment 84714 _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.
This patch probably only applies to master. For dbus-1.6, we can have a simpler patch, because _DBUS_LOCK() can't fail.
Patch 84714, "_dbus_get_tmpdir: be thread-safe":