]> git.ipfire.org Git - thirdparty/dbus.git/commit
If sendmsg() with SCM_CREDS fails with EINVAL, retry with send()
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Wed, 18 Sep 2013 16:51:53 +0000 (17:51 +0100)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Mon, 6 Jan 2014 15:49:41 +0000 (15:49 +0000)
commit3ca8a53e336a1a829bae93c70fe617af6493201a
tree502273f4dd0ba5f4b4eceb250703109d9edc950e
parent4e8032be4e6608163757b2ab926e44e5f784807d
If sendmsg() with SCM_CREDS fails with EINVAL, retry with send()

Perhaps some OSs accept and ignore attempts to send a SCM_CREDS
message on a non-Unix socket, but GNU/kFreeBSD doesn't (and presumably
FreeBSD doesn't either).

Based on a patch by Svante Signell.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=69492
Tested-by: Svante Signell
Reviewed-by: Chengwei Yang <chengwei.yang@intel.com>
dbus/dbus-sysdeps-unix.c