summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorGilles Chehade <gilles@cvs.openbsd.org>2016-05-21 19:28:20 +0000
committerGilles Chehade <gilles@cvs.openbsd.org>2016-05-21 19:28:20 +0000
commit95546d558b3af0d3eb898a9fba073d2be5583731 (patch)
treec4b94d6ad05c2195e11f1e591ff364789d33768c /usr.sbin
parent7b08f4acdc704e10df5374dc28598f47614a4fe7 (diff)
replace hardcoded '+' with TAG_CHAR define
diff from obadz <github@obadz.com>
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/smtpd/aliases.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/smtpd/aliases.c b/usr.sbin/smtpd/aliases.c
index 29d2b0e5e6c..20645878ba5 100644
--- a/usr.sbin/smtpd/aliases.c
+++ b/usr.sbin/smtpd/aliases.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: aliases.c,v 1.69 2015/12/28 22:08:30 jung Exp $ */
+/* $OpenBSD: aliases.c,v 1.70 2016/05/21 19:28:19 gilles Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@poolp.org>
@@ -126,8 +126,8 @@ aliases_virtual_get(struct expand *expand, const struct mailaddr *maddr)
/* first, check if entry has a user-part tag */
if (tag[0]) {
- if (!bsnprintf(buf, sizeof(buf), "%s+%s@%s",
- user, tag, domain))
+ if (!bsnprintf(buf, sizeof(buf), "%s%c%s@%s",
+ user, TAG_CHAR, tag, domain))
return 0;
ret = table_lookup(mapping, NULL, buf, K_ALIAS, &lk);
if (ret < 0)
@@ -147,7 +147,7 @@ aliases_virtual_get(struct expand *expand, const struct mailaddr *maddr)
if (tag[0]) {
/* Failed ? We lookup for username + user-part tag */
- if (!bsnprintf(buf, sizeof(buf), "%s+%s", user, tag))
+ if (!bsnprintf(buf, sizeof(buf), "%s%c%s", user, TAG_CHAR, tag))
return 0;
ret = table_lookup(mapping, NULL, buf, K_ALIAS, &lk);
if (ret < 0)