Re: [patch] smtpd: missing space for "from local" with -T rules

2018-07-16 Thread Lauri Tirkkonen
On Wed, Jun 20 2018 12:19:43 +0300, Lauri Tirkkonen wrote:
> "from local" rules are missing a space when printed out with -T rules.
> 
> diff --git a/usr.sbin/smtpd/to.c b/usr.sbin/smtpd/to.c
> index e1d399d74f2..27d5321408f 100644
> --- a/usr.sbin/smtpd/to.c
> +++ b/usr.sbin/smtpd/to.c
> @@ -461,7 +461,7 @@ rule_to_text(struct rule *r)
>   if (strcmp(r->table_from, "") == 0)
>   (void)strlcat(buf, "from any ", sizeof buf);
>   else if (strcmp(r->table_from, "") == 0)
> - (void)strlcat(buf, "from local", sizeof buf);
> + (void)strlcat(buf, "from local ", sizeof buf);
>   else {
>   (void)strlcat(buf, "from src ", sizeof buf);
>   (void)strlcat(buf, r->table_from, sizeof buf);

ping?

-- 
Lauri Tirkkonen | lotheac @ IRCnet



[patch] smtpd: missing space for "from local" with -T rules

2018-06-20 Thread Lauri Tirkkonen
"from local" rules are missing a space when printed out with -T rules.

diff --git a/usr.sbin/smtpd/to.c b/usr.sbin/smtpd/to.c
index e1d399d74f2..27d5321408f 100644
--- a/usr.sbin/smtpd/to.c
+++ b/usr.sbin/smtpd/to.c
@@ -461,7 +461,7 @@ rule_to_text(struct rule *r)
if (strcmp(r->table_from, "") == 0)
(void)strlcat(buf, "from any ", sizeof buf);
else if (strcmp(r->table_from, "") == 0)
-   (void)strlcat(buf, "from local", sizeof buf);
+   (void)strlcat(buf, "from local ", sizeof buf);
else {
(void)strlcat(buf, "from src ", sizeof buf);
(void)strlcat(buf, r->table_from, sizeof buf);
-- 
Lauri Tirkkonen | lotheac @ IRCnet