1 https://www.illumos.org/issues/6728
2 https://www.illumos.org/issues/5633
4 Glib function g_check_setuid() uses issetugid() to determine if application
5 is setuid. If it is setuid, dbus launcher is not executed.
6 But this check also fires when we use pfexec. So we revert to uid/euid comparison
7 here to allow applications using glib to work with dbus.
9 --- glib-2.82.0/glib/gutils.c.orig
10 +++ glib-2.82.0/glib/gutils.c
13 g_error ("getauxval () failed: %s", g_strerror (errsv));
15 -#elif defined(HAVE_ISSETUGID) && !defined(__ANDROID__)
16 +#elif defined(HAVE_ISSETUGID) && !defined(__ANDROID__) && !defined(__sun)
17 /* BSD: http://www.freebsd.org/cgi/man.cgi?query=issetugid&sektion=2 */
19 /* Android had it in older versions but the new 64 bit ABI does not