$NetBSD: patch-bf,v 1.3 2006/04/01 04:55:35 jlam Exp $

--- nsswitch/winbindd_util.c.orig	2006-01-24 18:46:34.000000000 -0500
+++ nsswitch/winbindd_util.c
@@ -1172,7 +1172,7 @@ BOOL winbindd_upgrade_idmap(void)
 	SMB_STRUCT_STAT stbuf;
 	TDB_CONTEXT *idmap_tdb;
 
-	pstrcpy(idmap_name, lock_path("winbindd_idmap.tdb"));
+	pstrcpy(idmap_name, state_path("winbindd_idmap.tdb"));
 
 	if (!file_exist(idmap_name, &stbuf)) {
 		/* nothing to convert return */
