This patch solves two problems with incorrect behavior
in TDB 1.0.6.
Firstly, the tdb_open.3 man page states that
open_flags are ignored when using TDB_INTERNAL, but
A tdb_open() with TDB_INTERNAL and open_flags = 0
a database that can utilise store and fetch but not delete
The man page has been amended accordingly.
Secondly, the tdb_store() function is modified to not
store operations to be performed on a read-only database.
Note, that the tdb_store() function will attempt to
write to any
readonly database and this problem is not exclusively
to TDB_INTERNAL. The patch fixes that issue.
Hope this helps.