r19414: gencache is getting really important now, make sure that lp_lockdir
authorGünther Deschner <gd@samba.org>
Thu, 19 Oct 2006 15:43:25 +0000 (15:43 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:15:33 +0000 (12:15 -0500)
always exists so that the gencache.tdb can get created there.

Guenther
(This used to be commit e5ed286125d1f4b8b28bf143f987102071fd0de2)

source3/lib/gencache.c

index 95ec47b697e756cba6e0357aad1b190267490d36..1448d5a6382ae430842fad5980786dd1075358c8 100644 (file)
@@ -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;