setgroups02(_16) is working with an uninitialized list, expect the first GID
field. setgroups() and getgroups() additionally get called with the full length
of the uninitialized list. The uninitialized values cause setgroups02_16 to
fail:
===
setgroups02_16 1 BROK : gid returned from getgroups is too large for
testing setgroups32
===
Since the uninitialized values could be greater then 0xffff.
Signed-off-by: Daniel Gollub <[EMAIL PROTECTED]>
---
Index: ltp-full-20081017/testcases/kernel/syscalls/setgroups/setgroups02.c
===================================================================
--- ltp-full-20081017.orig/testcases/kernel/syscalls/setgroups/setgroups02.c
+++ ltp-full-20081017/testcases/kernel/syscalls/setgroups/setgroups02.c
@@ -91,7 +91,7 @@ main(int ac, char **av)
{
int lc,i; /* loop counters */
char *msg; /* message returned from parse_opts */
- int gidsetsize = NGROUPS; /* total groups */
+ int gidsetsize = 1; /* only one GID, the GID of TESTUSER */
int PASS_FLAG = 0; /* used for checking group array */
/* Parse standard options given to run the test. */
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list