From 6a4299e134a6c84732b2baf43900532bd4f4f33a Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Tue, 12 Feb 2013 13:41:58 +0000 Subject: [PATCH 2/3] Unix credentials-passing: emit a #warning if we can't This will break the build in developer mode (but not in release mode) on platforms where credentials passing doesn't work. That's positive, as far as I'm concerned: it'll give developers on obscure platforms some incentive to test and fix it. If we find a Unix OS that really doesn't support credentials-passing, we can make this #ifndef __THAT_BAD_UNIX__ or something. --- dbus/dbus-sysdeps-unix.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dbus/dbus-sysdeps-unix.c b/dbus/dbus-sysdeps-unix.c index de7cbd9..2b78227 100644 --- a/dbus/dbus-sysdeps-unix.c +++ b/dbus/dbus-sysdeps-unix.c @@ -1898,6 +1898,9 @@ _dbus_read_credentials_socket (int client_fd, if (ucred != NULL) ucred_free (ucred); #else /* !SO_PEERCRED && !HAVE_CMSGCRED && !HAVE_GETPEEREID && !HAVE_GETPEERUCRED */ + +#warning Socket credentials not supported on this Unix OS + _dbus_verbose ("Socket credentials not supported on this OS\n"); #endif } -- 1.7.10.4