Patch 2 of 3 from Debian Samba packagers:
[vlendec/samba-autobuild/.git] / source3 / winbindd / idmap_tdb.c
index 881377bda6e0fb1b79fdf534274ac5c514e57356..1ec7085a3be0ae63acacdb76f4579e4aa1474027 100644 (file)
@@ -221,7 +221,7 @@ static NTSTATUS idmap_tdb_open_db(TALLOC_CTX *memctx, TDB_CONTEXT **tdbctx)
        }
 
        /* use the old database if present */
-       tdbfile = talloc_strdup(ctx, lock_path("winbindd_idmap.tdb"));
+       tdbfile = talloc_strdup(ctx, state_path("winbindd_idmap.tdb"));
        if (!tdbfile) {
                DEBUG(0, ("Out of memory!\n"));
                ret = NT_STATUS_NO_MEMORY;