X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fgetugroups.c;h=725f024699f6a3e26fa97c862b57e6bcdda952d8;hb=7517e2fd5e24f47eed66f8390d49f807555f8770;hp=50e1f4dca2aa4e698beb4e0f379d9838a84148e1;hpb=169ab5dec0e562548959482e3ff63c96c340e0d1;p=gnulib.git diff --git a/lib/getugroups.c b/lib/getugroups.c index 50e1f4dca..725f02469 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-2009 Free Software Foundation. + Copyright (C) 1990-1991, 1998-2000, 2003-2013 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