From: Jakub Wilk Date: Mon, 18 Mar 2019 17:34:21 +0000 (+0100) Subject: Documentation: fix core_pattern max length X-Git-Tag: v5.2-rc1~93^2~106 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=cc809ed885097eafff7b711ef03c20261651ec3a;p=uclinux-h8%2Flinux.git Documentation: fix core_pattern max length The buffer size for core_pattern is 128, but one character is used for terminating null byte, so the actual limit is 127: # printf '%0999d' > /proc/sys/kernel/core_pattern # tr -d '\n' < /proc/sys/kernel/core_pattern | wc -c 127 Signed-off-by: Jakub Wilk Signed-off-by: Jonathan Corbet --- diff --git a/Documentation/sysctl/kernel.txt b/Documentation/sysctl/kernel.txt index aa058aa7bf28..f0c86fbb3b48 100644 --- a/Documentation/sysctl/kernel.txt +++ b/Documentation/sysctl/kernel.txt @@ -196,7 +196,7 @@ CAP_LAST_CAP from the kernel. core_pattern: core_pattern is used to specify a core dumpfile pattern name. -. max length 128 characters; default value is "core" +. max length 127 characters; default value is "core" . core_pattern is used as a pattern template for the output filename; certain string patterns (beginning with '%') are substituted with their actual values.