diff options
author | Jacek Masiulaniec <jacekm@cvs.openbsd.org> | 2009-03-01 13:08:48 +0000 |
---|---|---|
committer | Jacek Masiulaniec <jacekm@cvs.openbsd.org> | 2009-03-01 13:08:48 +0000 |
commit | 43ca8382de768ab34e3da02d10d6fa682f756540 (patch) | |
tree | 332ca84cabd13be5330d8054c552346d1f1d39da /usr.sbin | |
parent | f092babddb80972c18afa94d16b13bd7df4c319f (diff) |
make the condition under which delivery is made by SMTPD_USER more
explicit; ok gilles@
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/smtpd/smtpd.c | 4 |
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; } |