summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd
diff options
context:
space:
mode:
authorJacek Masiulaniec <jacekm@cvs.openbsd.org>2008-12-14 19:16:07 +0000
committerJacek Masiulaniec <jacekm@cvs.openbsd.org>2008-12-14 19:16:07 +0000
commit59819af770916f1fda7aa698272cecaf9c56bfdd (patch)
tree722628f22e89214a47e29f58e6a87af5b495fd68 /usr.sbin/smtpd
parent66c7517d44335dc8bf960d56c921b8725a30325f (diff)
queue_create_incoming_layout must return 0 on failure, not -1.
ok gilles@
Diffstat (limited to 'usr.sbin/smtpd')
-rw-r--r--usr.sbin/smtpd/queue.c6
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)