svn commit: samba r23931 - in branches: SAMBA_3_2/source/nsswitch SAMBA_3_2_0/source/nsswitch

obnox at samba.org obnox at samba.org
Tue Jul 17 12:51:45 GMT 2007


Author: obnox
Date: 2007-07-17 12:51:43 +0000 (Tue, 17 Jul 2007)
New Revision: 23931

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=23931

Log:
Use the new tdb_validate_and_backup function instead of pure tdb_validate
in winbindd cache validation.

Michael


Modified:
   branches/SAMBA_3_2/source/nsswitch/winbindd_cache.c
   branches/SAMBA_3_2_0/source/nsswitch/winbindd_cache.c


Changeset:
Modified: branches/SAMBA_3_2/source/nsswitch/winbindd_cache.c
===================================================================
--- branches/SAMBA_3_2/source/nsswitch/winbindd_cache.c	2007-07-17 12:49:22 UTC (rev 23930)
+++ branches/SAMBA_3_2/source/nsswitch/winbindd_cache.c	2007-07-17 12:51:43 UTC (rev 23931)
@@ -3300,8 +3300,8 @@
 	}
 	tdb_close(tdb);
 
-	ret = tdb_validate(lock_path("winbindd_cache.tdb"),
-			   cache_traverse_validate_fn);
+	ret = tdb_validate_and_backup(lock_path("winbindd_cache.tdb"),
+				      cache_traverse_validate_fn);
 
 	if (ret != 0) {
 		DEBUG(10, ("winbindd_validate_cache: validation not successful.\n"));

Modified: branches/SAMBA_3_2_0/source/nsswitch/winbindd_cache.c
===================================================================
--- branches/SAMBA_3_2_0/source/nsswitch/winbindd_cache.c	2007-07-17 12:49:22 UTC (rev 23930)
+++ branches/SAMBA_3_2_0/source/nsswitch/winbindd_cache.c	2007-07-17 12:51:43 UTC (rev 23931)
@@ -3300,8 +3300,8 @@
 	}
 	tdb_close(tdb);
 
-	ret = tdb_validate(lock_path("winbindd_cache.tdb"),
-			   cache_traverse_validate_fn);
+	ret = tdb_validate_and_backup(lock_path("winbindd_cache.tdb"),
+				      cache_traverse_validate_fn);
 
 	if (ret != 0) {
 		DEBUG(10, ("winbindd_validate_cache: validation not successful.\n"));



More information about the samba-cvs mailing list