Fix bug 7590 - offline login fails because winbind deletes cache on every startup.
commit0a66309682d66b8f2a10f0980fb5e73a6c6a601a
authorJeremy Allison <jra@samba.org>
Tue, 27 Jul 2010 08:54:01 +0000 (27 01:54 -0700)
committerKarolin Seeger <kseeger@samba.org>
Mon, 27 Sep 2010 19:28:59 +0000 (27 21:28 +0200)
tree291405f96d4a49dda50ae48696a89e61c7bb1115
parent63a8bb89c0d0183c09ab7a1de046abe0f670dd55
Fix bug 7590 - offline login fails because winbind deletes cache on every startup.

Sync lib/tdb_validate.c with the change in current master.
Change tdb_validate_open() to always use O_RDWR instead of O_RDONLY,
as (from the bug report): "db_check() will always return failure for a read-only database.
Silently, without any log output, when _tdb_lockall() fails."

Jeremy.
(cherry picked from commit 39cb903463d8a3fcabd9e148112bf5cf81744130)
source3/lib/tdb_validate.c