This is the mail archive of the libc-alpha@sourceware.cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: initgroups()


Arkadiusz Miskiewicz <misiek@pld.org.pl> writes:

> Small problem with initgroups():
> 
> misiek@dark misiek$ rpm -q glibc gcc
> glibc-2.1.2-13
> gcc-2.95.2-1
> misiek@dark misiek$ LC_ALL=C id
> uid=1000(misiek) gid=1000(users) groups=1000(users)
> misiek@dark misiek$ gcc test.c -Wall -o test && LC_ALL=C ./test
> initgroups("misiek", -1)
> error Invalid argument
> misiek@dark misiek$

Which services are you using?  I.e., show me the group related entries
in /etc/nsswitch.conf.

-- 
---------------.      drepper at gnu.org  ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Red Hat          `--' drepper at redhat.com   `------------------------

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]