Bug: tdb read-only open and truncate

Elrond elrond at samba-tng.org
Thu Oct 4 08:41:03 GMT 2001


On Wed, Oct 03, 2001 at 11:28:54AM -0700, Jeremy Allison wrote:
[...]
> tdb_open should cause a failure if opened with O_RDONLY and CLEAR_IF_FIRST.
> 
> I don't think any code in HEAD or 2.2 do this,

Code in head did this some time ago in locking/. And we
still have code from that time here.

I've just fixed our code in this area.

> but I'll add a failure check in tdb/tdb.c to make sure.
[...]

Thanks for "fixing" tdb.c.


    Elrond




More information about the samba-technical mailing list