Fix tdb_check() to work with read-only tdb databases. The function tdb_lockall()...
authorJeremy Allison <jra@samba.org>
Wed, 28 Jul 2010 12:15:40 +0000 (05:15 -0700)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 28 Jul 2010 23:26:35 +0000 (08:56 +0930)
commitbc1c82ea137e1bf6cb55139a666c56ebb2226b23
tree3ad9b5c8b2b69302ef01cd2d80d4acf325563f6e
parent39d287ec67d9c33b17c8809ac34d3c09f72f689d
Fix tdb_check() to work with read-only tdb databases. The function tdb_lockall() uses F_WRLCK internally, which doesn't work on a fd opened with O_RDONLY. Use tdb_lockall_read() instead.

Jeremy.
lib/tdb/common/check.c