From 94b594a3518c35f3b937d019411e9b7dbf5c65c3 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Fri, 13 Sep 2013 19:18:10 +0100 Subject: [PATCH] bus-test: only expect GetConnectionUnixProcessID to succeed sometimes On platforms that use getpeereid(), this can't work. --- bus/dispatch.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bus/dispatch.c b/bus/dispatch.c index 35a4b72..5fc0d11 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 -- 1.8.4.rc3