diff options
author | Gilles Chehade <gilles@cvs.openbsd.org> | 2016-02-10 09:23:54 +0000 |
---|---|---|
committer | Gilles Chehade <gilles@cvs.openbsd.org> | 2016-02-10 09:23:54 +0000 |
commit | 060608b110c5311fe44f770dd4e38b7f13a8a081 (patch) | |
tree | 613f2ce5a4331395b97cc7cdb8f69e1edaf34ffb /usr.sbin/smtpd/tree.c | |
parent | 7150eb3de381ea36cb360b8972c9ef81b143c268 (diff) |
when creating a db map, we use a temporary file to work on and atomically
move to destination when done. this causes dbopen() to be called with an
empty file which happens to... not work with other db libraries.
adding O_TRUNC is noop for us, fixes the issue for other libraries and
lets us reduce delta between us and portable.
ok sunil@, ok eric@
Diffstat (limited to 'usr.sbin/smtpd/tree.c')
0 files changed, 0 insertions, 0 deletions