Fix bug 7590 - offline login fails because winbind deletes cache on every startup.
commit39cb903463d8a3fcabd9e148112bf5cf81744130
authorJeremy Allison <jra@samba.org>
Tue, 27 Jul 2010 08:54:01 +0000 (27 01:54 -0700)
committerKarolin Seeger <kseeger@samba.org>
Mon, 16 Aug 2010 05:26:19 +0000 (16 07:26 +0200)
treee4232a092d10ad5d47da902db57823ab2c9f2477
parent5dff580fb710c9fe95a77afdb543203c4a6e5645
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.
source3/lib/tdb_validate.c