Package: winbind Version: 3.0.25-1 If winbindd_cache.tdb is not valid, winbindd will remove it and try to recreate it. However, because of fhs.patch, winbindd will create the file in cache_path but remove it from lock_path.
The attached patch makes winbindd remove the invalid cache file off cache_path instead, and should probably be merged into fhs.patch. Thanks, Chris.
--- samba-3.0.25/source/nsswitch/winbindd_cache.c 2007-05-23 10:19:54.000000000 +1200 +++ samba-3.0.25/source/nsswitch/winbindd_cache.c 2007-05-23 10:20:46.000000000 +1200 @@ -2223,9 +2223,9 @@ tdb_close(wcache->tdb); wcache->tdb = NULL; - if (unlink(lock_path("winbindd_cache.tdb")) == -1) { + if (unlink(cache_path("winbindd_cache.tdb")) == -1) { DEBUG(0,("initialize_winbindd_cache: unlink %s failed %s ", - lock_path("winbindd_cache.tdb"), + cache_path("winbindd_cache.tdb"), strerror(errno) )); return False; }