apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ian Holsman <i...@cnet.com>
Subject Re: cvs commit: apr/user/unix groupinfo.c
Date Wed, 21 Nov 2001 00:07:26 GMT
On Tue, 2001-11-20 at 15:18, trawick@apache.org 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          IanH@cnet.com
Performance Measurement & Analysis
CNET Networks   -   (415) 344-2608


Mime
View raw message