X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fgetgroups.c;h=1e9cbc6495166a394fbd8a9157a77ebd5d8fde8a;hb=bd606be378ddd8404641cad023dd43f1f676b26e;hp=68a5aa1496e2cf7fbfd68ac320c4b828cbafccef;hpb=57fdfd3f8ec62b105c53bcdf6f127c35c7fe7391;p=gnulib.git diff --git a/lib/getgroups.c b/lib/getgroups.c index 68a5aa149..1e9cbc649 100644 --- a/lib/getgroups.c +++ b/lib/getgroups.c @@ -1,6 +1,7 @@ /* provide consistent interface to getgroups for systems that don't allow N==0 - Copyright (C) 1996, 1999, 2003, 2006 Free Software Foundation, Inc. + Copyright (C) 1996, 1999, 2003, 2006, 2007, 2008 Free Software + Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -19,10 +20,13 @@ #include +#undef getgroups + #include #include #include #include +#include #include "xalloc.h" @@ -32,14 +36,12 @@ provided function handle all others. */ int -getgroups (int n, GETGROUPS_T *group) +rpl_getgroups (int n, GETGROUPS_T *group) { int n_groups; GETGROUPS_T *gbuf; int saved_errno; -#undef getgroups - if (n != 0) return getgroups (n, group);