]> git.ozlabs.org Git - ccan/commitdiff
tdb2: fix O_RDONLY opens.
authorRusty Russell <rusty@rustcorp.com.au>
Fri, 20 May 2011 06:23:12 +0000 (15:53 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Fri, 20 May 2011 06:23:12 +0000 (15:53 +0930)
We tried to get a F_WRLCK on the open lock; we shouldn't do that for a
read-only tdb.  (TDB1 gets away with it because a read-only open skips
all locking).

We also avoid leaking the fd in two tdb_open() failure paths revealed
by this extra testing.


No differences found