summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2006-10-19 15:43:25 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:15:33 -0500
commit9034063617d42ecc1cd32249cd6e1fa46921c51a (patch)
treed6a887eb3367f5ca2e24250d5cf899a317d9cec1 /source3
parente070996cc365b72535131cf3b7925d2246918ba3 (diff)
downloadsamba-9034063617d42ecc1cd32249cd6e1fa46921c51a.tar.gz
samba-9034063617d42ecc1cd32249cd6e1fa46921c51a.tar.bz2
samba-9034063617d42ecc1cd32249cd6e1fa46921c51a.zip
r19414: gencache is getting really important now, make sure that lp_lockdir
always exists so that the gencache.tdb can get created there. Guenther (This used to be commit e5ed286125d1f4b8b28bf143f987102071fd0de2)
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/gencache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/gencache.c b/source3/lib/gencache.c
index 95ec47b697..1448d5a638 100644
--- a/source3/lib/gencache.c
+++ b/source3/lib/gencache.c
@@ -56,7 +56,7 @@ BOOL gencache_init(void)
/* skip file open if it's already opened */
if (cache) return True;
- asprintf(&cache_fname, "%s/%s", lp_lockdir(), "gencache.tdb");
+ asprintf(&cache_fname, "%s/%s", lock_path("gencache.tdb"));
if (cache_fname == NULL) {
DEBUG(0, ("Filename allocation failed.\n"));
return False;