diff options
author | Sam James <sam@gentoo.org> | 2022-04-23 01:59:58 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-04-23 02:00:11 +0100 |
commit | 4c9e5128453698781e7acb380cf4f8431ed3d07e (patch) | |
tree | d064c71ac2be5922edcc25ba43902a8b18d11118 /sys-auth/polkit | |
parent | dev-libs/glib: addpredict /usr/b for tests (diff) | |
download | gentoo-4c9e5128453698781e7acb380cf4f8431ed3d07e.tar.gz gentoo-4c9e5128453698781e7acb380cf4f8431ed3d07e.tar.bz2 gentoo-4c9e5128453698781e7acb380cf4f8431ed3d07e.zip |
sys-auth/polkit: adapt musl patch for duktape build
Closes: https://bugs.gentoo.org/834604
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sys-auth/polkit')
-rw-r--r-- | sys-auth/polkit/files/polkit-0.118-make-netgroup-support-optional.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/sys-auth/polkit/files/polkit-0.118-make-netgroup-support-optional.patch b/sys-auth/polkit/files/polkit-0.118-make-netgroup-support-optional.patch index b11250fd3992..8810e70b7378 100644 --- a/sys-auth/polkit/files/polkit-0.118-make-netgroup-support-optional.patch +++ b/sys-auth/polkit/files/polkit-0.118-make-netgroup-support-optional.patch @@ -226,3 +226,23 @@ Signed-off-by: A. Wilcox <AWilcox@Wilcox-Tech.com> }; guint n; +--- a/src/polkitbackend/polkitbackendduktapeauthority.c ++++ b/src/polkitbackend/polkitbackendduktapeauthority.c +@@ -1035,7 +1035,7 @@ js_polkit_user_is_in_netgroup (duk_context *cx) + + user = duk_require_string (cx, 0); + netgroup = duk_require_string (cx, 1); +- ++#ifdef HAVE_SETNETGRENT + if (innetgr (netgroup, + NULL, /* host */ + user, +@@ -1043,7 +1043,7 @@ js_polkit_user_is_in_netgroup (duk_context *cx) + { + is_in_netgroup = TRUE; + } +- ++#endif + duk_push_boolean (cx, is_in_netgroup); + return 1; + } |