[Bug 217939] syslogd: -b doesn't work with IPv6 literal addresses after ^/head at r309933
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Mon Mar 20 10:27:51 UTC 2017
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217939
Andrey V. Elsukov <ae at FreeBSD.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ae at FreeBSD.org
--- Comment #1 from Andrey V. Elsukov <ae at FreeBSD.org> ---
I think the following patch should fix this:
Index: syslogd.c
===================================================================
--- syslogd.c (revision 315478)
+++ syslogd.c (working copy)
@@ -477,7 +477,8 @@ main(int argc, char *argv[])
break;
case 'b':
bflag = 1;
- if ((p = strchr(optarg, ':')) == NULL) {
+ if ((p = strchr(optarg, ':')) == NULL ||
+ strchr(p + 1, ':') != NULL) {
/* A hostname or filename only. */
addpeer(&(struct peer){
.pe_name = optarg,
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list