Page MenuHomeFreeBSD

D10064.1794204762.diff
No OneTemporary

Authored By
Unknown
Size
618 B
Referenced Files
None
Subscribers
None

D10064.1794204762.diff

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

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)

Event Timeline