summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorBo Yang <boyang@samba.org>2010-03-21 16:00:26 +0800
committerBo Yang <boyang@samba.org>2010-03-21 16:00:26 +0800
commit6e48267c28b05c3837a3e5ffc1f5b58316cc286f (patch)
tree741832999a839dae2eaee36aeb5e766d0b0e0c56 /source3
parent09f270e748263f2fb02683a9376ae185a5534178 (diff)
downloadsamba-6e48267c28b05c3837a3e5ffc1f5b58316cc286f.tar.gz
samba-6e48267c28b05c3837a3e5ffc1f5b58316cc286f.tar.bz2
samba-6e48267c28b05c3837a3e5ffc1f5b58316cc286f.zip
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@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/tdb_validate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/tdb_validate.c b/source3/lib/tdb_validate.c
index a1fb1850db..b4d0365dd4 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;