summaryrefslogtreecommitdiff
path: root/package/polkit/patches/patch-src_polkitbackend_polkitbackendinteractiveauthority_c
blob: 64608f5b58c4924c7bc76a7473677abac3b60efc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
--- polkit-0.112.orig/src/polkitbackend/polkitbackendinteractiveauthority.c	2013-09-18 18:55:09.000000000 +0200
+++ polkit-0.112/src/polkitbackend/polkitbackendinteractiveauthority.c	2014-01-11 11:22:30.000000000 +0100
@@ -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");