syslogd: do not convert tabs to ^I
This commit is contained in:
parent
b304eadca8
commit
2ee028dd5b
@ -467,7 +467,7 @@ static void split_escape_and_log(char *tmpbuf, int len)
|
|||||||
while ((c = *p++)) {
|
while ((c = *p++)) {
|
||||||
if (c == '\n')
|
if (c == '\n')
|
||||||
c = ' ';
|
c = ' ';
|
||||||
if (!(c & ~0x1f)) {
|
if (!(c & ~0x1f) && c != '\t') {
|
||||||
*q++ = '^';
|
*q++ = '^';
|
||||||
c += '@'; /* ^@, ^A, ^B... */
|
c += '@'; /* ^@, ^A, ^B... */
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user