Page MenuHomeFreeBSD

D10064.diff
No OneTemporary

D10064.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
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)

Event Timeline