apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject cvs commit: apr/user/unix groupinfo.c
Date Wed, 21 Nov 2001 12:58:28 GMT
trawick     01/11/21 04:58:28

  Modified:    .        configure.in
               user/unix groupinfo.c
  Log:
  make absolutely sure we have getgrnam_r() before calling it
  
  Revision  Changes    Path
  1.376     +1 -0      apr/configure.in
  
  Index: configure.in
  ===================================================================
  RCS file: /home/cvs/apr/configure.in,v
  retrieving revision 1.375
  retrieving revision 1.376
  diff -u -r1.375 -r1.376
  --- configure.in	2001/11/21 10:47:23	1.375
  +++ configure.in	2001/11/21 12:58:27	1.376
  @@ -398,6 +398,7 @@
   dnl #----------------------------- Checking for missing POSIX thread functions
   AC_CHECK_FUNCS(getpwnam_r)
   AC_CHECK_FUNCS(getpwuid_r)
  +AC_CHECK_FUNCS(getgrnam_r)
   AC_CHECK_FUNCS(getgrgid_r)
   
   dnl #----------------------------- Checking for Shared Memory Support 
  
  
  
  1.8       +1 -1      apr/user/unix/groupinfo.c
  
  Index: groupinfo.c
  ===================================================================
  RCS file: /home/cvs/apr/user/unix/groupinfo.c,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- groupinfo.c	2001/11/20 23:18:04	1.7
  +++ groupinfo.c	2001/11/21 12:58:28	1.8
  @@ -91,7 +91,7 @@
       struct group *gr;
   #ifndef BEOS
   
  -#if APR_HAS_THREADS && defined(_POSIX_THREAD_SAFE_FUNCTIONS) && defined(HAVE_GETGRGID_R)
  +#if APR_HAS_THREADS && defined(_POSIX_THREAD_SAFE_FUNCTIONS) && defined(HAVE_GETGRNAM_R)
       struct group grp;
       char grbuf[512];
   
  
  
  

Mime
View raw message