Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Apr 2018 17:05:28 +0000 (UTC)
From:      Oleksandr Tymoshenko <gonzo@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r332439 - head/lib/libc/gen
Message-ID:  <201804121705.w3CH5S8H029716@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: gonzo
Date: Thu Apr 12 17:05:27 2018
New Revision: 332439
URL: https://svnweb.freebsd.org/changeset/base/332439

Log:
  Fix quotes in the example code in syslog(3) BUGS section
  
  mdoc treats verbatim quotes in .Dl as a string delimiter and does
  not pass them to the rendered output. Use special char \*q to specify
  double quote
  
  PR:		216755
  MFC after:	3 days

Modified:
  head/lib/libc/gen/syslog.3

Modified: head/lib/libc/gen/syslog.3
==============================================================================
--- head/lib/libc/gen/syslog.3	Thu Apr 12 17:00:36 2018	(r332438)
+++ head/lib/libc/gen/syslog.3	Thu Apr 12 17:05:27 2018	(r332439)
@@ -295,4 +295,4 @@ for later interpolation by
 .Pp
 Always use the proper secure idiom:
 .Pp
-.Dl syslog(priority, "%s", string);
+.Dl syslog(priority, \*q%s\*q, string);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201804121705.w3CH5S8H029716>