diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-04-20 02:56:23 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-04-20 02:56:23 +0000 |
commit | c6dfe2002d27d340bb5da6891bdf37e04c8abeae (patch) | |
tree | 9cb343da7de894c9ebe87641223d7a3c5f138a58 /package/busybox/patches/803-id_getgrouplist.patch | |
parent | c47b7193d127939f9c84a69459884c112f58e523 (diff) | |
download | upstream-c6dfe2002d27d340bb5da6891bdf37e04c8abeae.tar.gz upstream-c6dfe2002d27d340bb5da6891bdf37e04c8abeae.tar.bz2 upstream-c6dfe2002d27d340bb5da6891bdf37e04c8abeae.zip |
busybox: refresh patches
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26738 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/busybox/patches/803-id_getgrouplist.patch')
-rw-r--r-- | package/busybox/patches/803-id_getgrouplist.patch | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/package/busybox/patches/803-id_getgrouplist.patch b/package/busybox/patches/803-id_getgrouplist.patch index 48aa57c04f..04d8dc4067 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 <nico@openwrt.org> --- 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 <nico@openwrt.org> #endif #endif #endif -@@ -82,7 +84,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 <nico@openwrt.org> /* I guess *n < 0 might indicate error. Anyway, * malloc'ing -1 bytes won't be good, so: */ //if (*n < 0) -@@ -154,6 +160,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 <nico@openwrt.org> /* We are supplying largish buffer, trying * to not run get_groups() twice. That might be slow * ("user database in remote SQL server" case) */ -@@ -181,6 +188,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); |