diff options
| author | Xin LI <delphij@FreeBSD.org> | 2009-03-28 07:09:51 +0000 |
|---|---|---|
| committer | Xin LI <delphij@FreeBSD.org> | 2009-03-28 07:09:51 +0000 |
| commit | edcdc752ecddf8f0065064d63795ed85aa8d4a9e (patch) | |
| tree | b4c6bbf80b2c06d69f3a9c66f3c7f8a47b35477e /secure | |
| parent | a47fc8251914c0f596ede58b494a39d50f5997eb (diff) | |
Simplify the logic when determining whether to zero out a db file to after
open(). The previous logic only initializes the database when O_CREAT is
set, but as long as we can open and write the database, and the database
is empty, we should initialize it anyway.
Obtained from: OpenBSD
Notes
svn path=/head/; revision=190495
Diffstat (limited to 'secure')
0 files changed, 0 insertions, 0 deletions
