diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2013-09-13 19:18:10 +0100 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2013-09-23 11:24:14 +0100 |
commit | 5ecbe018a07dfd5b1cce5eb0e431f7a5984517c7 (patch) | |
tree | 4978eba1575a3382343a4b5db52ed80e943b39f3 /bus | |
parent | 1da53c6d4a72061567430f4ab6b51f1b7fe1079e (diff) | |
download | dbus-5ecbe018a07dfd5b1cce5eb0e431f7a5984517c7.tar.gz |
bus-test: only expect GetConnectionUnixProcessID to succeed sometimes
On platforms that use getpeereid(), this can't work.
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=60340
Reviewed-by: Colin Walters <walters@verbum.org>
Diffstat (limited to 'bus')
-rw-r--r-- | bus/dispatch.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bus/dispatch.c b/bus/dispatch.c index 35a4b72b..5fc0d112 100644 --- a/bus/dispatch.c +++ b/bus/dispatch.c @@ -1307,9 +1307,15 @@ check_get_connection_unix_process_id (BusContext *context, #endif else { +#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || \ + defined(__linux__) || \ + defined(__OpenBSD__) warn_unexpected (connection, message, "not this error"); goto out; +#else + _dbus_verbose ("does not support GetConnectionUnixProcessID but perhaps that's OK?\n"); +#endif } } else |