summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjacekm <jacekm@openbsd.org>2009-03-01 13:08:47 +0000
committerjacekm <jacekm@openbsd.org>2009-03-01 13:08:47 +0000
commit4928ab9d0c032582d77557dd9ddfedec43fece41 (patch)
tree4f1240423714fe69ef29aaf579627626ca45c0f1
parentsimplify *_open functions by passing them char * instead of struct (diff)
downloadwireguard-openbsd-4928ab9d0c032582d77557dd9ddfedec43fece41.tar.xz
wireguard-openbsd-4928ab9d0c032582d77557dd9ddfedec43fece41.zip
make the condition under which delivery is made by SMTPD_USER more
explicit; ok gilles@
-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 149a35e8b7d..920308be39d 100644
--- a/usr.sbin/smtpd/smtpd.c
+++ b/usr.sbin/smtpd/smtpd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: smtpd.c,v 1.34 2009/03/01 13:07:52 jacekm Exp $ */
+/* $OpenBSD: smtpd.c,v 1.35 2009/03/01 13:08:47 jacekm Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org>
@@ -314,7 +314,7 @@ parent_dispatch_mda(int fd, short event, void *p)
file = path->rule.r_value.path;
pw_name = path->pw_name;
- if (*pw_name == '\0') {
+ if (path->rule.r_action == A_FILENAME) {
file = path->u.filename;
pw_name = SMTPD_USER;
}