Bug 11371 - log to remote syslog incorrectly appends "\n"
Summary: log to remote syslog incorrectly appends "\n"
Status: NEW
Alias: None
Product: Busybox
Classification: Unclassified
Component: Other (show other bugs)
Version: unspecified
Hardware: All Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-09-24 07:08 UTC by hackler756
Modified: 2018-09-24 07:08 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description hackler756 2018-09-24 07:08:55 UTC
"\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,