X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fgetugroups.c;h=99cdf2317e10dd04f55092d8cc7eac615222434d;hb=80a029602f5b2707ca8d2487843ecb9e0df74a6a;hp=4a5a69ddce1ca774190f12e6faa71de9446e56e2;hpb=b2e2010c7c902235b5efb5bd3c6529f61b093aa4;p=gnulib.git diff --git a/lib/getugroups.c b/lib/getugroups.c index 4a5a69ddc..99cdf2317 100644 --- a/lib/getugroups.c +++ b/lib/getugroups.c @@ -1,6 +1,6 @@ /* getugroups.c -- return a list of the groups a user is in - Copyright (C) 1990-1991, 1998-2000, 2003-2010 Free Software Foundation, Inc. + Copyright (C) 1990-1991, 1998-2000, 2003-2012 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 @@ -45,9 +45,9 @@ getugroups (int maxcount _GL_UNUSED, #else /* HAVE_GRP_H */ # include -# define STREQ(s1, s2) (strcmp (s1, s2) == 0) +# define STREQ(a, b) (strcmp (a, b) == 0) -/* Like `getgroups', but for user USERNAME instead of for the current +/* Like 'getgroups', but for user USERNAME instead of for the current process. Store at most MAXCOUNT group IDs in the GROUPLIST array. If GID is not -1, store it first (if possible). GID should be the group ID (pw_gid) obtained from getpwuid, in case USERNAME is not