diff options
author | Ed Maste <emaste@FreeBSD.org> | 2020-05-09 15:56:02 +0000 |
---|---|---|
committer | Ed Maste <emaste@FreeBSD.org> | 2020-05-09 15:56:02 +0000 |
commit | 937b352e23839361e7bcbc84d0e180c1c3bb9285 (patch) | |
tree | 377a80d30913b28642fdb79b22693d5b6396808a /share | |
parent | 75c600d2870d2d14fb9b2b97bfb79a41967f9191 (diff) | |
download | src-937b352e23839361e7bcbc84d0e180c1c3bb9285.tar.gz src-937b352e23839361e7bcbc84d0e180c1c3bb9285.zip |
remove %n support from printf(9)
It can be dangerous and there is no need for it in the kernel.
Inspired by Kees Cook's change in Linux, and later OpenBSD.
Reviewed by: cem, gordon, philip
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D24760
Notes
Notes:
svn path=/head/; revision=360849
Diffstat (limited to 'share')
-rw-r--r-- | share/man/man9/printf.9 | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/share/man/man9/printf.9 b/share/man/man9/printf.9 index 0b4bd826aa5c..1a3640871bd1 100644 --- a/share/man/man9/printf.9 +++ b/share/man/man9/printf.9 @@ -26,7 +26,7 @@ .\" .\" $FreeBSD$ .\" -.Dd November 18, 2015 +.Dd May 9, 2020 .Dt PRINTF 9 .Os .Sh NAME @@ -83,7 +83,7 @@ parameter in the same manner as .Xr printf 3 . However, .Xr printf 9 -adds two other conversion specifiers. +adds two other conversion specifiers and omits one. .Pp The .Cm \&%b @@ -121,6 +121,10 @@ If present, a width directive will specify the number of bytes to display. By default, 16 bytes of data are output. .Pp The +.Cm \&%n +conversion specifier is not supported. +.Pp +The .Fn log function uses .Xr syslog 3 |