summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd/smtpd.c
diff options
context:
space:
mode:
authorEric Faurot <eric@cvs.openbsd.org>2012-01-24 12:20:19 +0000
committerEric Faurot <eric@cvs.openbsd.org>2012-01-24 12:20:19 +0000
commitf76506b24b40a5b08e8c3fac8199df1983a4291a (patch)
tree66b3215fed35079431420c38670650ef85da6ebe /usr.sbin/smtpd/smtpd.c
parent958bc6b31fc06ddc8b75aaa5125a4f58c6029bad (diff)
Add a parameter to the queue backend init() call to specify wether the
call is issued by smtpd or smtpctl. In the latter case, only perform sanity checks and do not touch directories. A running server no longer lose its "incoming/" directory each time smtpctl is called... ok gilles@
Diffstat (limited to 'usr.sbin/smtpd/smtpd.c')
-rw-r--r--usr.sbin/smtpd/smtpd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/smtpd.c b/usr.sbin/smtpd/smtpd.c
index 2f98c62de04..77fdf7cc89a 100644
--- a/usr.sbin/smtpd/smtpd.c
+++ b/usr.sbin/smtpd/smtpd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: smtpd.c,v 1.148 2012/01/18 13:41:54 chl Exp $ */
+/* $OpenBSD: smtpd.c,v 1.149 2012/01/24 12:20:18 eric Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org>
@@ -521,7 +521,7 @@ main(int argc, char *argv[])
if (env->sc_queue == NULL)
errx(1, "could not find queue backend");
- if (!env->sc_queue->init())
+ if (!env->sc_queue->init(1))
errx(1, "could not initialize queue backend");
log_init(debug);