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_polkitbackendjsauthority_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_polkitbackendjsauthority_c')
-rw-r--r-- | package/polkit/patches/patch-src_polkitbackend_polkitbackendjsauthority_c | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/package/polkit/patches/patch-src_polkitbackend_polkitbackendjsauthority_c b/package/polkit/patches/patch-src_polkitbackend_polkitbackendjsauthority_c new file mode 100644 index 000000000..14a702dda --- /dev/null +++ b/package/polkit/patches/patch-src_polkitbackend_polkitbackendjsauthority_c @@ -0,0 +1,38 @@ +--- polkit-0.112.orig/src/polkitbackend/polkitbackendjsauthority.c 2013-09-18 18:55:09.000000000 +0200 ++++ polkit-0.112/src/polkitbackend/polkitbackendjsauthority.c 2014-01-11 11:27:02.000000000 +0100 +@@ -29,6 +29,7 @@ + #include <glib/gstdio.h> + #include <locale.h> + #include <glib/gi18n-lib.h> ++#include <sys/wait.h> + + #include <polkit/polkit.h> + #include "polkitbackendjsauthority.h" +@@ -1450,13 +1451,16 @@ js_polkit_user_is_in_netgroup (JSContext + JSBool ret = JS_FALSE; + JSString *user_str; + JSString *netgroup_str; +- char *user; +- char *netgroup; + JSBool is_in_netgroup = JS_FALSE; + + if (!JS_ConvertArguments (cx, argc, JS_ARGV (cx, vp), "SS", &user_str, &netgroup_str)) + goto out; + ++#if defined(HAVE_INNETGR) ++ { ++ char *user; ++ char *netgroup; ++ + user = JS_EncodeString (cx, user_str); + netgroup = JS_EncodeString (cx, netgroup_str); + +@@ -1470,6 +1474,8 @@ js_polkit_user_is_in_netgroup (JSContext + + JS_free (cx, netgroup); + JS_free (cx, user); ++ } ++#endif + + ret = JS_TRUE; + |