diff options
author | Eric Faurot <eric@cvs.openbsd.org> | 2012-01-24 12:20:19 +0000 |
---|---|---|
committer | Eric Faurot <eric@cvs.openbsd.org> | 2012-01-24 12:20:19 +0000 |
commit | f76506b24b40a5b08e8c3fac8199df1983a4291a (patch) | |
tree | 66b3215fed35079431420c38670650ef85da6ebe /usr.sbin/smtpd/smtpctl.c | |
parent | 958bc6b31fc06ddc8b75aaa5125a4f58c6029bad (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/smtpctl.c')
-rw-r--r-- | usr.sbin/smtpd/smtpctl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/smtpctl.c b/usr.sbin/smtpd/smtpctl.c index d2bd0155430..e4ab391b840 100644 --- a/usr.sbin/smtpd/smtpctl.c +++ b/usr.sbin/smtpd/smtpctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: smtpctl.c,v 1.76 2012/01/12 22:59:55 eric Exp $ */ +/* $OpenBSD: smtpctl.c,v 1.77 2012/01/24 12:20:18 eric Exp $ */ /* * Copyright (c) 2006 Pierre-Yves Ritschard <pyr@openbsd.org> @@ -85,7 +85,7 @@ setup_env(struct smtpd *smtpd) if (env->sc_queue == NULL) errx(1, "could not find queue backend"); - if (!env->sc_queue->init()) + if (!env->sc_queue->init(0)) errx(1, "invalid directory permissions"); } |