[Bug 11371] New: log to remote syslog incorrectly appends "\n"

bugzilla at busybox.net bugzilla at busybox.net
Mon Sep 24 07:08:55 UTC 2018


https://bugs.busybox.net/show_bug.cgi?id=11371

            Bug ID: 11371
           Summary: log to remote syslog incorrectly appends "\n"
           Product: Busybox
           Version: unspecified
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Other
          Assignee: unassigned at busybox.net
          Reporter: hackler756 at gmail.com
                CC: busybox-cvs at busybox.net
  Target Milestone: ---

"\n" should be removed

please take a look at the message specification with examples 
https://tools.ietf.org/html/rfc5424#page-8

source - sysklogd/syslog.c
https://git.busybox.net/busybox/tree/sysklogd/syslogd.c#n1059

1059            /* Stock syslogd sends it '\n'-terminated
1060             * over network, mimic that */
1061            recvbuf[sz] = '\n';
1078                    if (sendto(rh->remoteFD, recvbuf, sz+1,

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the busybox-cvs mailing list