FreeBSD Bugzilla – Attachment 58552 Details for
Bug 88215
[patch] syslogd(8) does not pass cleanly parameters to cfline()
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 937 bytes, created by
Daniel Molina Wegener
on 2005-10-30 07:30:15 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Daniel Molina Wegener
Created:
2005-10-30 07:30:15 UTC
Size:
937 bytes
patch
obsolete
>--- usr.sbin/syslogd/syslogd.c.dist Sun Oct 30 02:05:56 2005 >+++ usr.sbin/syslogd/syslogd.c Sun Oct 30 04:04:10 2005 >@@ -1,3 +1,4 @@ >+/* -*- mode: c; c-basic-offset: 4; c-default-style: "bsd" -*- */ > /* > * Copyright (c) 1983, 1988, 1993, 1994 > * The Regents of the University of California. All rights reserved. >@@ -734,7 +735,7 @@ > *q++ = '-'; > } > if (isascii(c) && iscntrl(c)) { >- if (c == '\n') { >+ if (c == '\n' || c == '\r') { > *q++ = ' '; > } else if (c == '\t') { > *q++ = '\t'; >@@ -747,7 +748,6 @@ > } > } > *q = '\0'; >- > logmsg(pri, line, hname, 0); > } > >@@ -1588,6 +1588,7 @@ > continue; > } > if (*p == '+' || *p == '-') { >+ (void)strlcpy(prog, "*", sizeof(prog)); > host[0] = *p++; > while (isspace(*p)) > p++; >@@ -1607,6 +1608,7 @@ > continue; > } > if (*p == '!') { >+ (void)strlcpy(host, "*", sizeof(host)); > p++; > while (isspace(*p)) p++; > if ((!*p) || (*p == '*')) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 88215
: 58552