Hi Rusty + tdb maintainers, A recent Samba bug brought up a tdb bug - the tdb_check() function doesn't cope with tdb databases opened read-only. As tdb_check doesn't write to the tdb it's checking, then it should support read-only tdb's. Here's the patch, please review and if you're ok I'll push (or you can :-). Jeremy.