summaryrefslogtreecommitdiffstats
path: root/source/lib
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
commite5ed286125d1f4b8b28bf143f987102071fd0de2 (patch)
tree9fac9bdaaab1b3921f80a389cce063089a5ce83e /source/lib
parentacf5419d62f4ac64449d4722c5ff3c9be35c0570 (diff)
downloadsamba-e5ed286125d1f4b8b28bf143f987102071fd0de2.tar.gz
samba-e5ed286125d1f4b8b28bf143f987102071fd0de2.tar.xz
samba-e5ed286125d1f4b8b28bf143f987102071fd0de2.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
Diffstat (limited to 'source/lib')
-rw-r--r--source/lib/gencache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/lib/gencache.c b/source/lib/gencache.c
index 95ec47b697e..1448d5a6382 100644
--- a/source/lib/gencache.c
+++ b/source/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;