CVSROOT:        /cvs
Module name:    src
Changes by:     gil...@cvs.openbsd.org  2016/02/10 02:23:54

Modified files:
        usr.sbin/smtpd : makemap.c 

Log message:
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@

Reply via email to