switched to using uclibc SVN snapshots
[kvm-coreboot.git] / packages / busybox / testfix.patch
blob9bc45f6c9de0d84d865847e4111aebc764825fdf
1 Index: busybox-1.1.3/coreutils/test.c
2 ===================================================================
3 --- busybox-1.1.3.orig/coreutils/test.c 2006-08-22 08:28:57.000000000 -0600
4 +++ busybox-1.1.3/coreutils/test.c 2006-08-22 08:40:01.000000000 -0600
5 @@ -540,8 +540,11 @@
6 static void initialize_group_array(void)
8 ngroups = getgroups(0, NULL);
9 - group_array = xrealloc(group_array, ngroups * sizeof(gid_t));
10 - getgroups(ngroups, group_array);
12 + if (ngroups > 0) {
13 + group_array = xrealloc(group_array, ngroups * sizeof(gid_t));
14 + getgroups(ngroups, group_array);
15 + }
18 /* Return non-zero if GID is one that we have in our groups list. */