X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/0971ec06ad925235fd3c6dae90a4fbc852ee72e8..65de12cc1acfeeacf85c3fd77d244b9dc7e79bdc:/src/src/queue.c diff --git a/src/src/queue.c b/src/src/queue.c index f53759c43..7648f47ca 100644 --- a/src/src/queue.c +++ b/src/src/queue.c @@ -1145,7 +1145,7 @@ switch(action) case MSG_SHOW_COPY: deliver_in_buffer = store_malloc(DELIVER_IN_BUFFER_SIZE); deliver_out_buffer = store_malloc(DELIVER_OUT_BUFFER_SIZE); - transport_write_message(NULL, 1, 0, 0, NULL, NULL, NULL, NULL, NULL, 0); + transport_write_message(1, NULL, 0); break; @@ -1378,7 +1378,6 @@ switch(action) } if (yield) - { if (spool_write_header(id, SW_MODIFYING, &errmsg) >= 0) printf("has been modified\n"); else @@ -1386,7 +1385,6 @@ switch(action) yield = FALSE; printf("- while %s: %s\n", doing, errmsg); } - } break; } @@ -1394,8 +1392,11 @@ switch(action) /* Closing the datafile releases the lock and permits other processes to operate on the message (if it still exists). */ -(void)close(deliver_datafile); -deliver_datafile = -1; +if (deliver_datafile >= 0) + { + (void)close(deliver_datafile); + deliver_datafile = -1; + } return yield; }