s3:lib/gencache: place gencache.tdb into /var/cache/samba
authorStefan Metzmacher <metze@samba.org>
Thu, 28 Mar 2013 10:00:27 +0000 (11:00 +0100)
committerVolker Lendecke <vl@samba.org>
Wed, 3 Apr 2013 07:53:08 +0000 (09:53 +0200)
/var/lock/samba is located on tmpfs on newer systems,
but we want to keep things like the server affinity cache
across reboots.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
source3/lib/gencache.c

index 18bfc7ccf9daf653aa6e2b901049791961b2a4fa..8ace4d9ad24b244d7f1287324955e53662b38850 100644 (file)
@@ -63,7 +63,7 @@ static bool gencache_init(void)
        /* skip file open if it's already opened */
        if (cache) return True;
 
-       cache_fname = lock_path("gencache.tdb");
+       cache_fname = cache_path("gencache.tdb");
 
        DEBUG(5, ("Opening cache file at %s\n", cache_fname));