trawick 01/11/20 15:18:04
Modified: user/unix groupinfo.c
Log:
get the getgrnam_r() logic to compile; no promises on correctness :)
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