On Tue, 2001-11-20 at 15:18, [EMAIL PROTECTED] wrote:
> trawick 01/11/20 15:18:04
>
> Modified: user/unix groupinfo.c
> Log:
> get the getgrnam_r() logic to compile; no promises on correctness :)
my bad...
linux has the extra parameter
solaris doesn't ;)
>
> Revision Changes Path
> 1.7 +1 -1 apr/user/unix/groupinfo.c
>
> Index: groupinfo.c
> ===================================================================
> RCS file: /home/cvs/apr/user/unix/groupinfo.c,v
> retrieving revision 1.6
> retrieving revision 1.7
> diff -u -r1.6 -r1.7
> --- groupinfo.c 2001/11/20 22:44:46 1.6
> +++ groupinfo.c 2001/11/20 23:18:04 1.7
> @@ -95,7 +95,7 @@
> struct group grp;
> char grbuf[512];
>
> - if (getgrnam_r(&grpname, &gr, grbuf, sizeof(grbuf))) {
> + if (getgrnam_r(groupname, &grp, grbuf, sizeof(grbuf), &gr)) {
> #else
> if ((gr = getgrnam(groupname)) == NULL) {
> #endif
>
>
>
--
Ian Holsman [EMAIL PROTECTED]
Performance Measurement & Analysis
CNET Networks - (415) 344-2608