_dbus_server_new_for_domain_socket: don't try to unlink abstract sockets
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Wed, 29 Jun 2011 16:29:16 +0000 (17:29 +0100)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Fri, 5 Aug 2011 13:39:52 +0000 (14:39 +0100)
commit20e2dc7c74cd1e1232db56e4655de264d17aae6f
treea0d7ce1292e6a0c7ca979d5f8327d659c346757f
parentba2892396a6a3cfae7482e7d42d0a491eb2e723a
_dbus_server_new_for_domain_socket: don't try to unlink abstract sockets

Our abstract socket names look like filenames (/tmp/dbus-MwozdykBNK or
whatever), so if we incorrectly unlink the abstract socket name, in
highly unlikely circumstances we could accidentally unlink a non-abstract
socket belonging to another process!

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=38656
Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
dbus/dbus-server-unix.c