CVS commit: [netbsd-10] src/usr.sbin/syslogd
"Martin Husemann" <[email protected]>
| Newsgroups | gmane.os.netbsd.devel.cvs |
|---|---|
| Message-ID | <[email protected]> |
Module Name: src Committed By: martin Date: Mon Aug 17 15:44:49 UTC 2026 Modified Files: src/usr.sbin/syslogd [netbsd-10]: syslogd.c Log Message: Pull up following revision(s) (requested by msaitoh in ticket #1324): usr.sbin/syslogd/syslogd.c: revision 1.156 usr.sbin/syslogd/syslogd.c: revision 1.157 syslogd: Fix buffering of partial klog lines When a /dev/klog read ends without a newline, the remaining data is buffered for the next read. The code mistakenly copied the data into linebuf instead of klog_linebuf, breaking reconstruction of split log messages. Found and fixed by nonaka@ and Kenichi Suzuki at IIJ. syslogd: Preserve full partial klog line when buffering Buffer incomplete /dev/klog lines from the start of the original line instead of the parse position. Otherwise, split messages lose the BSD syslog priority prefix when reconstructed. Fixed by Kenichi Suzuki at IIJ. To generate a diff of this commit: cvs rdiff -u -r1.140.2.2 -r1.140.2.3 src/usr.sbin/syslogd/syslogd.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.