[SCM] Samba Shared Repository - branch master updated

Bo Yang boyang at samba.org
Sun Mar 21 02:01:23 MDT 2010


The branch, master has been updated
       via  6e48267... s3: Open winbindd_cache.tdb with read/write access.
      from  09f270e... s3: Fix bug 7202

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 6e48267c28b05c3837a3e5ffc1f5b58316cc286f
Author: Bo Yang <boyang at samba.org>
Date:   Sun Mar 21 16:00:26 2010 +0800

    s3: Open winbindd_cache.tdb with read/write access.
    
    Open winbindd_cache.tdb with read/write access when validate the cache,
    otherwise, validation fails to get lock in tdb_check. It results in
    validation failure even the cache is good.
    
    Signed-off-by: Bo Yang <boyang at samba.org>

-----------------------------------------------------------------------

Summary of changes:
 source3/lib/tdb_validate.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/lib/tdb_validate.c b/source3/lib/tdb_validate.c
index a1fb185..b4d0365 100644
--- a/source3/lib/tdb_validate.c
+++ b/source3/lib/tdb_validate.c
@@ -192,7 +192,7 @@ int tdb_validate_open(const char *tdb_path, tdb_validate_data_func validate_fn)
 
 	DEBUG(5, ("tdb_validate_open called for tdb '%s'\n", tdb_path));
 
-	tdb = tdb_open_log(tdb_path, 0, TDB_DEFAULT, O_RDONLY, 0);
+	tdb = tdb_open_log(tdb_path, 0, TDB_DEFAULT, O_RDWR, 0);
 	if (!tdb) {
 		DEBUG(1, ("Error opening tdb %s\n", tdb_path));
 		return ret;


-- 
Samba Shared Repository


More information about the samba-cvs mailing list