Laurence Tratt <lau...@tratt.net> wrote:

> On Sun, Feb 02, 2020 at 03:22:12PM -0700, Theo de Raadt wrote:
> 
> Hello Theo,
> 
> >> OpenBSD's documentation for openlog's first paramater 'ident' is less
> >> clear than Debian [1] or GNU [2] that the memory pointed to must remain
> >> valid for as long as syslog is called (which I'm assuming without hard
> >> evidence is equivalent to "until closelog is called").
> [...]
> > If we are going to document it, about 6 word adjustment speaking about
> > "storage", "lifetime", or "persisting" "until closelog()" should be enough,
> 
> Keeping it simple works for me. Patch at the bottom of this email.
> 
> 
> Laurie
> 
> 
> Index: syslog.3
> ===================================================================
> RCS file: /cvs/src/lib/libc/gen/syslog.3,v
> retrieving revision 1.35
> diff -u -r1.35 syslog.3
> --- syslog.3  30 Aug 2019 20:27:25 -0000      1.35
> +++ syslog.3  2 Feb 2020 23:13:30 -0000
> @@ -216,7 +216,9 @@
>  .Fn vsyslog .
>  The parameter
>  .Fa ident
> -is a string that will be prepended to every message.
> +is a string that will be prepended to every message; both storage and 
> contents
> +must persist unchanged until
> +.Fn closelog .
>  The
>  .Fa logopt
>  argument

What is the difference between storage and contents

(actually contents could change.  As long as there is always a terminating NUL,
for the purpose of traversal.  But that's not something someone should code to)

You still didn't say how you ran into this.

Reply via email to