$NetBSD: patch-bj,v 1.1 2005/11/14 08:05:28 jlam Exp $ --- sam/idmap_tdb.c.orig 2005-10-12 13:03:37.000000000 -0400 +++ sam/idmap_tdb.c @@ -487,7 +487,7 @@ static NTSTATUS db_idmap_init( char *par BOOL tdb_is_new = False; /* use the old database if present */ - tdbfile = SMB_STRDUP(lock_path("winbindd_idmap.tdb")); + tdbfile = SMB_STRDUP(state_path("winbindd_idmap.tdb")); if (!tdbfile) { DEBUG(0, ("idmap_init: out of memory!\n")); return NT_STATUS_NO_MEMORY;