summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd/delivery_mbox.c
diff options
context:
space:
mode:
authorGilles Chehade <gilles@cvs.openbsd.org>2012-10-03 17:58:04 +0000
committerGilles Chehade <gilles@cvs.openbsd.org>2012-10-03 17:58:04 +0000
commitc103f476f0d7aa20a55b9f8cbd80335447992a15 (patch)
treec481fa71eb96ee7a5faf9134ac92671b84197983 /usr.sbin/smtpd/delivery_mbox.c
parentdda472ec5c5ed8fb58070f3d9ca58cd49d608ac9 (diff)
disallow root deliveries for "deliver to filename" and "deliver to mda"
rules, we only allow them for mbox and maildir though users should really create a root alias ... discussed with eric@ and chl@, ok both
Diffstat (limited to 'usr.sbin/smtpd/delivery_mbox.c')
-rw-r--r--usr.sbin/smtpd/delivery_mbox.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/delivery_mbox.c b/usr.sbin/smtpd/delivery_mbox.c
index ae8d2bcae20..28002d8f54e 100644
--- a/usr.sbin/smtpd/delivery_mbox.c
+++ b/usr.sbin/smtpd/delivery_mbox.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: delivery_mbox.c,v 1.5 2012/03/07 23:04:00 gilles Exp $ */
+/* $OpenBSD: delivery_mbox.c,v 1.6 2012/10/03 17:58:03 gilles Exp $ */
/*
* Copyright (c) 2011 Gilles Chehade <gilles@openbsd.org>
@@ -44,7 +44,7 @@ extern char **environ;
static void delivery_mbox_open(struct deliver *);
struct delivery_backend delivery_backend_mbox = {
- delivery_mbox_open
+ 1, delivery_mbox_open
};