summaryrefslogtreecommitdiffstats
path: root/usr.sbin/smtpd/queue_api.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/smtpd/queue_api.c')
-rw-r--r--usr.sbin/smtpd/queue_api.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/smtpd/queue_api.c b/usr.sbin/smtpd/queue_api.c
index 6484c3578fa..ca5e929b742 100644
--- a/usr.sbin/smtpd/queue_api.c
+++ b/usr.sbin/smtpd/queue_api.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: queue_api.c,v 1.2 2013/10/26 12:27:59 eric Exp $ */
+/* $OpenBSD: queue_api.c,v 1.3 2013/10/27 18:21:07 eric Exp $ */
/*
* Copyright (c) 2013 Eric Faurot <eric@openbsd.org>
@@ -149,6 +149,7 @@ queue_msg_dispatch(void)
/* XXX needs more love */
r = -1;
+ snprintf(path, sizeof path, "/tmp/message.XXXXXXXXXX");
fd = mkstemp(path);
if (fd == -1) {
log_warn("warn: queue-api: mkstemp");