From 9034063617d42ecc1cd32249cd6e1fa46921c51a Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Thu, 19 Oct 2006 15:43:25 +0000 Subject: 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) --- source3/lib/gencache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3') 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; -- cgit