Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177363883
D10064.1794204762.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
618 B
Referenced Files
None
Subscribers
None
D10064.1794204762.diff
View Options
Index: head/usr.sbin/syslogd/syslogd.c
===================================================================
--- head/usr.sbin/syslogd/syslogd.c
+++ head/usr.sbin/syslogd/syslogd.c
@@ -477,7 +477,15 @@
break;
case 'b':
bflag = 1;
- if ((p = strchr(optarg, ':')) == NULL) {
+ p = strchr(optarg, ']');
+ if (p != NULL)
+ p = strchr(p + 1, ':');
+ else {
+ p = strchr(optarg, ':');
+ if (p != NULL && strchr(p + 1, ':') != NULL)
+ p = NULL; /* backward compatibility */
+ }
+ if (p == NULL) {
/* A hostname or filename only. */
addpeer(&(struct peer){
.pe_name = optarg,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 9, 6:12 AM (10 h, 33 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41607209
Default Alt Text
D10064.1794204762.diff (618 B)
Attached To
Mode
D10064: syslogd: fix -b use with IPv6 literal addresses after ^/head@r309933
Attached
Detach File
Event Timeline