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.58.2/glib/gutils.c 2018-12-28 20:30:35.103726021 +0000
10 +++ glib-2.58.2/glib/gutils.c 2018-12-28 20:32:56.090135890 +0000
11 @@ -2518,7 +2518,7 @@ g_check_setuid (void)
13 g_error ("getauxval () failed: %s", g_strerror (errsv));
15 -#elif defined(HAVE_ISSETUGID) && !defined(__BIONIC__)
16 +#elif defined(HAVE_ISSETUGID) && !defined(__BIONIC__) && !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