summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorolavmrk <olavmrk@a716ebb1-153a-0410-b759-cfb97c6a1b53>2013-03-06 12:53:34 +0000
committerolavmrk <olavmrk@a716ebb1-153a-0410-b759-cfb97c6a1b53>2013-03-06 12:53:34 +0000
commit5ba60b7ad9f9eff2a7eabcf39c05de6e3e6d8437 (patch)
tree0b11817217a6ec917ce0139bf129b16eedc87742
parent71082f1563306824d364650b702ba0470b3c8c67 (diff)
downloadmod_auth_mellon-5ba60b7ad9f9eff2a7eabcf39c05de6e3e6d8437.tar.gz
mod_auth_mellon-5ba60b7ad9f9eff2a7eabcf39c05de6e3e6d8437.tar.xz
mod_auth_mellon-5ba60b7ad9f9eff2a7eabcf39c05de6e3e6d8437.zip
Change lock file to be stored in /var/run.
The current code defaults to storing the lock file in /tmp. This patch changes the default to /var/run, which is where such files belong. Note that this lock file is only required on some platforms. git-svn-id: https://modmellon.googlecode.com/svn/trunk@176 a716ebb1-153a-0410-b759-cfb97c6a1b53
-rw-r--r--README4
-rw-r--r--auth_mellon_config.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/README b/README
index 8ee3d0a..949eaf2 100644
--- a/README
+++ b/README
@@ -101,8 +101,8 @@ MellonCacheSize 100
# to the session data. The path should only be used by one instance of
# apache at a time. The server must be restarted before any changes to this
# option takes effect.
-# Default: MellonLockFile "/tmp/mellonLock"
-MellonLockFile "/tmp/mellonLock"
+# Default: MellonLockFile "/var/run/mod_auth_mellon.lock"
+MellonLockFile "/var/run/mod_auth_mellon.lock"
# MellonPostDirectory is the full path of a directory where POST requests
# are saved during authentication. This directory must be owned by the
diff --git a/auth_mellon_config.c b/auth_mellon_config.c
index 793d7af..7e103cc 100644
--- a/auth_mellon_config.c
+++ b/auth_mellon_config.c
@@ -1479,7 +1479,7 @@ void *auth_mellon_server_config(apr_pool_t *p, server_rec *s)
mod = apr_palloc(p, sizeof(*mod));
mod->cache_size = 100; /* ought to be enough for everybody */
- mod->lock_file = "/tmp/mellonLock";
+ mod->lock_file = "/var/run/mod_auth_mellon.lock";
mod->post_dir = post_dir;
mod->post_ttl = post_ttl;
mod->post_count = post_count;