diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2014-01-11 11:50:34 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2014-01-11 11:50:34 +0100 |
commit | 7ce924b1f5ab24a0f16293047c67d24c6376d375 (patch) | |
tree | 5e7c4b579d7caef626886f394cd56c5e768b36c4 /package/polkit/patches/patch-src_polkitbackend_polkitbackendinteractiveauthority_c | |
parent | 361225c8f0951a2c59f00428a9a3317b67993138 (diff) |
systemd is glibc specific, disable upower/polkit for uclibc/musl for now
Diffstat (limited to 'package/polkit/patches/patch-src_polkitbackend_polkitbackendinteractiveauthority_c')
-rw-r--r-- | package/polkit/patches/patch-src_polkitbackend_polkitbackendinteractiveauthority_c | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/package/polkit/patches/patch-src_polkitbackend_polkitbackendinteractiveauthority_c b/package/polkit/patches/patch-src_polkitbackend_polkitbackendinteractiveauthority_c new file mode 100644 index 000000000..64608f5b5 --- /dev/null +++ b/package/polkit/patches/patch-src_polkitbackend_polkitbackendinteractiveauthority_c @@ -0,0 +1,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"); |