diff options
author | Jacek Masiulaniec <jacekm@cvs.openbsd.org> | 2008-12-14 19:16:07 +0000 |
---|---|---|
committer | Jacek Masiulaniec <jacekm@cvs.openbsd.org> | 2008-12-14 19:16:07 +0000 |
commit | 59819af770916f1fda7aa698272cecaf9c56bfdd (patch) | |
tree | 722628f22e89214a47e29f58e6a87af5b495fd68 /usr.sbin/smtpd | |
parent | 66c7517d44335dc8bf960d56c921b8725a30325f (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.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) |