Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F131709168
D10064.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
618 B
Referenced Files
None
Subscribers
None
D10064.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
Sat, Oct 11, 1:06 PM (17 h, 55 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
23577985
Default Alt Text
D10064.diff (618 B)
Attached To
Mode
D10064: syslogd: fix -b use with IPv6 literal addresses after ^/head@r309933
Attached
Detach File
Event Timeline
Log In to Comment