patch-src_polkitbackend_polkitbackendinteractiveauthority_c 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. --- polkit-0.112.orig/src/polkitbackend/polkitbackendinteractiveauthority.c 2013-09-18 18:55:09.000000000 +0200
  2. +++ polkit-0.112/src/polkitbackend/polkitbackendinteractiveauthority.c 2014-01-11 11:22:30.000000000 +0100
  3. @@ -2103,6 +2103,7 @@ get_users_in_group (PolkitIdentity
  4. return ret;
  5. }
  6. +#if defined(HAVE_GETNETGRENT)
  7. static GList *
  8. get_users_in_net_group (PolkitIdentity *group,
  9. gboolean include_root)
  10. @@ -2154,6 +2155,7 @@ get_users_in_net_group (PolkitIdentity
  11. endnetgrent ();
  12. return ret;
  13. }
  14. +#endif
  15. /* ---------------------------------------------------------------------------------------------------- */
  16. @@ -2243,10 +2245,12 @@ authentication_agent_initiate_challenge
  17. {
  18. user_identities = g_list_concat (user_identities, get_users_in_group (identity, FALSE));
  19. }
  20. +#if defined(HAVE_GETNETGRENT)
  21. else if (POLKIT_IS_UNIX_NETGROUP (identity))
  22. {
  23. user_identities = g_list_concat (user_identities, get_users_in_net_group (identity, FALSE));
  24. }
  25. +#endif
  26. else
  27. {
  28. g_warning ("Unsupported identity");