You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by jo...@apache.org on 2005/08/03 16:44:31 UTC

svn commit: r227230 - /httpd/httpd/trunk/modules/ldap/util_ldap.c

Author: jorton
Date: Wed Aug  3 07:44:29 2005
New Revision: 227230

URL: http://svn.apache.org/viewcvs?rev=227230&view=rev
Log:
* modules/ldap/util_ldap.c (util_ldap_post_config): Pass NULL to
apr_global_mutex_create if no cache file name is specified, rather
than inventing an inappropriate name with tmpnam().

PR: 30385

Modified:
    httpd/httpd/trunk/modules/ldap/util_ldap.c

Modified: httpd/httpd/trunk/modules/ldap/util_ldap.c
URL: http://svn.apache.org/viewcvs/httpd/httpd/trunk/modules/ldap/util_ldap.c?rev=227230&r1=227229&r2=227230&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/ldap/util_ldap.c (original)
+++ httpd/httpd/trunk/modules/ldap/util_ldap.c Wed Aug  3 07:44:29 2005
@@ -1841,9 +1841,7 @@
             st->lock_file = apr_pstrcat(st->pool, st->cache_file, ".lck", 
                                         NULL);
         }
-        else
 #endif
-            st->lock_file = ap_server_root_relative(st->pool, tmpnam(NULL));
 
         result = apr_global_mutex_create(&st->util_ldap_cache_lock, 
                                          st->lock_file, APR_LOCK_DEFAULT,