X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/e53ecb012ec4b2b87bb9ab35741241590b552a68..7691bc8380e586e04a5959dc1f4fbdac43218ae7:/package/busybox/patches/803-id_getgrouplist.patch diff --git a/package/busybox/patches/803-id_getgrouplist.patch b/package/busybox/patches/803-id_getgrouplist.patch index ddc89f269..04d8dc406 100644 --- a/package/busybox/patches/803-id_getgrouplist.patch +++ b/package/busybox/patches/803-id_getgrouplist.patch @@ -5,9 +5,9 @@ Signed-off-by: Nicolas Thill --- a/coreutils/id.c +++ b/coreutils/id.c -@@ -17,10 +17,12 @@ +@@ -19,10 +19,12 @@ - #include "libbb.h" + /* This is a NOEXEC applet. Be very careful! */ +#define HAVE_GETGROUPLIST 1 + @@ -19,7 +19,7 @@ Signed-off-by: Nicolas Thill #endif #endif #endif -@@ -86,7 +88,11 @@ static int get_groups(const char *userna +@@ -84,7 +86,11 @@ static int get_groups(const char *userna /* If the user is a member of more than * *n groups, then -1 is returned. Otherwise >= 0. * (and no defined way of detecting errors?!) */ @@ -31,7 +31,7 @@ Signed-off-by: Nicolas Thill /* I guess *n < 0 might indicate error. Anyway, * malloc'ing -1 bytes won't be good, so: */ //if (*n < 0) -@@ -160,6 +166,7 @@ int id_main(int argc UNUSED_PARAM, char +@@ -156,6 +162,7 @@ int id_main(int argc UNUSED_PARAM, char if (egid != rgid) status |= print_group(egid, " "); } @@ -39,7 +39,7 @@ Signed-off-by: Nicolas Thill /* We are supplying largish buffer, trying * to not run get_groups() twice. That might be slow * ("user database in remote SQL server" case) */ -@@ -187,6 +194,7 @@ int id_main(int argc UNUSED_PARAM, char +@@ -183,6 +190,7 @@ int id_main(int argc UNUSED_PARAM, char } if (ENABLE_FEATURE_CLEAN_UP) free(groups);