syslogd: do not convert tabs to ^I
authorDenis Vlasenko <vda.linux@googlemail.com>
Thu, 21 Jun 2007 13:44:53 +0000 (13:44 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Thu, 21 Jun 2007 13:44:53 +0000 (13:44 -0000)
sysklogd/syslogd.c

index c8f13568d33e5b61c706fbb7200b97f1b7b380eb..0ed16bc9eb6178e2b008555e0d3743f9658a38f5 100644 (file)
@@ -467,7 +467,7 @@ static void split_escape_and_log(char *tmpbuf, int len)
                while ((c = *p++)) {
                        if (c == '\n')
                                c = ' ';
-                       if (!(c & ~0x1f)) {
+                       if (!(c & ~0x1f) && c != '\t') {
                                *q++ = '^';
                                c += '@'; /* ^@, ^A, ^B... */
                        }