summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2009-01-16 00:30:36 +0100
committerMichael Adam <obnox@samba.org>2009-01-16 01:02:22 +0100
commit62e7849ddca3f727b2e954acb6b2ece02a275911 (patch)
treede43bda61c81219e5a6b8b37f0aa560f7e99fdbb /source3
parent0b87f210f17396d188cbd342bcfa94a33e031917 (diff)
downloadsamba-62e7849ddca3f727b2e954acb6b2ece02a275911.tar.gz
samba-62e7849ddca3f727b2e954acb6b2ece02a275911.tar.bz2
samba-62e7849ddca3f727b2e954acb6b2ece02a275911.zip
s3:passdb: put login_cache.tdb into cache_dir, not lock_dir.
Michael
Diffstat (limited to 'source3')
-rw-r--r--source3/passdb/login_cache.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/passdb/login_cache.c b/source3/passdb/login_cache.c
index 4e14293e73..2a6350045b 100644
--- a/source3/passdb/login_cache.c
+++ b/source3/passdb/login_cache.c
@@ -35,7 +35,8 @@ bool login_cache_init(void)
/* skip file open if it's already opened */
if (cache) return True;
- if (asprintf(&cache_fname, "%s/%s", lp_lockdir(), LOGIN_CACHE_FILE) == -1) {
+ cache_fname = cache_path(LOGIN_CACHE_FILE);
+ if (cache_fname == NULL) {
DEBUG(0, ("Filename allocation failed.\n"));
return False;
}
@@ -48,7 +49,7 @@ bool login_cache_init(void)
if (!cache)
DEBUG(5, ("Attempt to open %s failed.\n", cache_fname));
- SAFE_FREE(cache_fname);
+ TALLOC_FREE(cache_fname);
return (cache ? True : False);
}