This is the mail archive of the
libc-alpha@sourceware.cygnus.com
mailing list for the glibc project.
Re: initgroups()
- To: Arkadiusz Miskiewicz <misiek at pld dot org dot pl>
- Subject: Re: initgroups()
- From: Ulrich Drepper <drepper at redhat dot com>
- Date: 11 Feb 2000 13:35:40 -0800
- Cc: libc-alpha at sourceware dot cygnus dot com
- References: <20000209094700.A31334@admin.misiek.eu.org>
- Reply-To: drepper at cygnus dot com (Ulrich Drepper)
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 `------------------------