43 lines
1.5 KiB
Diff
43 lines
1.5 KiB
Diff
|
--- configure.ac.orig 2015-05-08 10:21:01.500335031 +0200
|
||
|
+++ configure.ac 2015-05-08 10:21:19.483327115 +0200
|
||
|
@@ -158,7 +158,7 @@ AC_CHECK_LIB(expat,XML_ParserCreate,[EXP
|
||
|
[AC_MSG_ERROR([Can't find expat library. Please install expat.])])
|
||
|
AC_SUBST(EXPAT_LIBS)
|
||
|
|
||
|
-AC_CHECK_FUNCS(clearenv)
|
||
|
+AC_CHECK_FUNCS(clearenv getnetgrent)
|
||
|
|
||
|
if test "x$GCC" = "xyes"; then
|
||
|
LDFLAGS="-Wl,--as-needed $LDFLAGS"
|
||
|
--- src/polkitbackend/polkitbackendinteractiveauthority.c.orig 2015-05-08 10:22:03.093307918 +0200
|
||
|
+++ src/polkitbackend/polkitbackendinteractiveauthority.c 2015-05-08 10:23:44.516263273 +0200
|
||
|
@@ -2103,6 +2103,7 @@ get_users_in_group (PolkitIdentity
|
||
|
return ret;
|
||
|
}
|
||
|
|
||
|
+#if defined HAVE_GETNETGRENT
|
||
|
static GList *
|
||
|
get_users_in_net_group (PolkitIdentity *group,
|
||
|
gboolean include_root)
|
||
|
@@ -2154,6 +2155,7 @@ get_users_in_net_group (PolkitIdentity
|
||
|
endnetgrent ();
|
||
|
return ret;
|
||
|
}
|
||
|
+#endif
|
||
|
|
||
|
/* ---------------------------------------------------------------------------------------------------- */
|
||
|
|
||
|
@@ -2243,10 +2245,12 @@ authentication_agent_initiate_challenge
|
||
|
{
|
||
|
user_identities = g_list_concat (user_identities, get_users_in_group (identity, FALSE));
|
||
|
}
|
||
|
+#if defined HAVE_GETNETGRENT
|
||
|
else if (POLKIT_IS_UNIX_NETGROUP (identity))
|
||
|
{
|
||
|
user_identities = g_list_concat (user_identities, get_users_in_net_group (identity, FALSE));
|
||
|
}
|
||
|
+#endif
|
||
|
else
|
||
|
{
|
||
|
g_warning ("Unsupported identity");
|