summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2002-07-14 23:13:25 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2002-07-14 23:13:25 +0000
commitd6a76851fa0de9505061e23cf6489af6091b7bcb (patch)
tree846264277e7c4c2326d5b918eac3565ba5831e7a
parentf59f397c7a7bc9103bdb67343084d04e85f48b73 (diff)
Fix SuperSafe=Interactive when DeliveryMode=i; Gregory Neil Shapiro
-rw-r--r--gnu/usr.sbin/sendmail/sendmail/deliver.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/gnu/usr.sbin/sendmail/sendmail/deliver.c b/gnu/usr.sbin/sendmail/sendmail/deliver.c
index d3254ea8bb1..ae35358f334 100644
--- a/gnu/usr.sbin/sendmail/sendmail/deliver.c
+++ b/gnu/usr.sbin/sendmail/sendmail/deliver.c
@@ -1013,6 +1013,16 @@ dup_queue_file(e, ee, type)
(void) sm_strlcpy(f1buf, queuename(e, type), sizeof f1buf);
(void) sm_strlcpy(f2buf, queuename(ee, type), sizeof f2buf);
+
+ /* Force the df to disk if it's not there yet */
+ if (type == DATAFL_LETTER && e->e_dfp != NULL &&
+ sm_io_setinfo(e->e_dfp, SM_BF_COMMIT, NULL) < 0 &&
+ errno != EINVAL)
+ {
+ syserr("!dup_queue_file: can't commit %s", f1buf);
+ /* NOTREACHED */
+ }
+
if (link(f1buf, f2buf) < 0)
{
int save_errno = errno;