summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2001-08-04 21:11:11 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2001-08-04 21:11:11 +0000
commit9c04f7d457e62118444b8dd38c1d6f20784bb04f (patch)
tree53df0871a7ea058974de14dd71f87022a5489adf /sys
parent76bc0f411077a88fc4dcf24a69305d6204b62369 (diff)
Move decision whether to make a new hash table or not to be after
the open(). That way if the user opened with O_EXLOCK and another process has the .db locked we don't decide to zero hash before the locking process has had a chance to write to the database. This also makes the logic simpler since we can just fstat the fd and check for size == 0 && !O_RDONLY. Closes PR 1934.
Diffstat (limited to 'sys')
0 files changed, 0 insertions, 0 deletions