From 98005da9bda57d9209b2fb2782ff23876cdcfd41 Mon Sep 17 00:00:00 2001 From: Alexander Bluhm Date: Tue, 18 Jul 2017 22:22:20 +0000 Subject: Both syslog(3) and syslogd(8) truncate the message at 8192 bytes. Do the same in sendsyslog(2) and document the behavior. reported by Ilja Van Sprundel; OK millert@ deraadt@ --- lib/libc/sys/sendsyslog.2 | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/libc/sys/sendsyslog.2 b/lib/libc/sys/sendsyslog.2 index 9931b09d1c1..417322cb3ff 100644 --- a/lib/libc/sys/sendsyslog.2 +++ b/lib/libc/sys/sendsyslog.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: sendsyslog.2,v 1.8 2016/03/22 13:09:08 bluhm Exp $ +.\" $OpenBSD: sendsyslog.2,v 1.9 2017/07/18 22:22:19 bluhm Exp $ .\" .\" Copyright (c) 2014 Theo de Raadt .\" @@ -14,7 +14,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: March 22 2016 $ +.Dd $Mdocdate: July 18 2017 $ .Dt SENDSYSLOG 2 .Os .Sh NAME @@ -33,6 +33,11 @@ function is used to transmit a formatted message direct to .Xr syslogd 8 without requiring the allocation of a socket. +The +.Fa msg +is not NUL terminated and its +.Fa len +is limited to 8192 bytes. If .Dv LOG_CONS is specified in the -- cgit v1.2.3