diff options
Diffstat (limited to 'usr.sbin/smtpd/aliases.c')
-rw-r--r-- | usr.sbin/smtpd/aliases.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/aliases.c b/usr.sbin/smtpd/aliases.c index 429967e8016..7995ecaa1a1 100644 --- a/usr.sbin/smtpd/aliases.c +++ b/usr.sbin/smtpd/aliases.c @@ -1,4 +1,4 @@ -/* $OpenBSD: aliases.c,v 1.46 2012/04/15 13:11:13 gilles Exp $ */ +/* $OpenBSD: aliases.c,v 1.47 2012/04/21 12:45:05 gilles Exp $ */ /* * Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org> @@ -77,7 +77,7 @@ aliases_get(objid_t mapid, struct expandtree *expandtree, char *username) /* foreach node in map_alias expandtree, we merge */ nbaliases = 0; RB_FOREACH(expnode, expandtree, &map_alias->expandtree) { - strlcpy(expnode->as_user, username, sizeof (expnode->as_user)); + strlcpy(expnode->as_user, SMTPD_USER, sizeof (expnode->as_user)); if (expnode->type == EXPAND_INCLUDE) nbaliases += aliases_expand_include(expandtree, expnode->u.buffer); else { @@ -165,6 +165,7 @@ aliases_virtual_get(objid_t mapid, struct expandtree *expandtree, /* foreach node in map_virtual expandtree, we merge */ nbaliases = 0; RB_FOREACH(expnode, expandtree, &map_virtual->expandtree) { + strlcpy(expnode->as_user, SMTPD_USER, sizeof (expnode->as_user)); if (expnode->type == EXPAND_INCLUDE) nbaliases += aliases_expand_include(expandtree, expnode->u.buffer); else { |