'getgroups' syscall does not work with kernel 2.6.34
| Newsgroups | gmane.linux.lib.dietlibc |
|---|---|
| Message-ID | <1717678093.413111274260377397.JavaMail.ngmail@webmail07.arcor-online.net> |
Hi,
I've just updated to the new linux kernel 2.6.34 and I've noticed that
there is a problem with the system call 'getgroups()': it returns a -1
and 'errno' is set to 38.
Here is a simple test program:
#include <unistd.h>
#include <errno.h>
int main(int argc, char *argv[])
{
int res;
res = getgroups(0,NULL);
if(res < 0)
return errno;
return 0;
};
# ./test
# echo $?
38
#
The same test program works as expected when linked against the glibc.
I've run the test on both an i386 and an arm platform with the same results.
giorgio
Giorgio, [email protected]