diff options
Diffstat (limited to 'usr.sbin/smtpd')
-rw-r--r-- | usr.sbin/smtpd/queue.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/smtpd/queue.c b/usr.sbin/smtpd/queue.c index 8d77eaefdfc..9bae9f79bde 100644 --- a/usr.sbin/smtpd/queue.c +++ b/usr.sbin/smtpd/queue.c @@ -1,4 +1,4 @@ -/* $OpenBSD: queue.c,v 1.25 2008/12/13 23:19:34 jacekm Exp $ */ +/* $OpenBSD: queue.c,v 1.26 2008/12/14 19:16:06 jacekm Exp $ */ /* * Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org> @@ -756,10 +756,10 @@ queue_create_incoming_layout(char *message_id) if (! bsnprintf(rootdir, MAXPATHLEN, "%s/%d.XXXXXXXXXXXXXXXX", PATH_INCOMING, time(NULL))) - return -1; + fatalx("queue_create_incoming_layout: snprintf"); if (mkdtemp(rootdir) == NULL) - return -1; + return 0; if (strlcpy(message_id, rootdir + strlen(PATH_INCOMING) + 1, MAXPATHLEN) >= MAXPATHLEN) |