summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib')
-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;