]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
bus-test: only expect GetConnectionUnixProcessID to succeed sometimes
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Fri, 13 Sep 2013 18:18:10 +0000 (19:18 +0100)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Mon, 23 Sep 2013 10:24:14 +0000 (11:24 +0100)
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>
bus/dispatch.c

index 35a4b72be3222586386f5565a7d732b67f45d919..5fc0d112ed70a15d2ad174bb8ca604ca15d1dc51 100644 (file)
@@ -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