diff options
author | Jakub Wilk <jwilk@jwilk.net> | 2019-03-18 13:34:21 -0400 |
---|---|---|
committer | Jonathan Corbet <corbet@lwn.net> | 2019-03-25 11:53:56 -0400 |
commit | cc809ed885097eafff7b711ef03c20261651ec3a (patch) | |
tree | d0642eb3892d5ffefc8b8c5182cc63db8f396546 /Documentation/sysctl | |
parent | 9834857754fffde7008123503fe8f1d66f526eb5 (diff) |
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 <jwilk@jwilk.net>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'Documentation/sysctl')
-rw-r--r-- | Documentation/sysctl/kernel.txt | 2 |
1 files changed, 1 insertions, 1 deletions
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. | |||
196 | core_pattern: | 196 | core_pattern: |
197 | 197 | ||
198 | core_pattern is used to specify a core dumpfile pattern name. | 198 | core_pattern is used to specify a core dumpfile pattern name. |
199 | . max length 128 characters; default value is "core" | 199 | . max length 127 characters; default value is "core" |
200 | . core_pattern is used as a pattern template for the output filename; | 200 | . core_pattern is used as a pattern template for the output filename; |
201 | certain string patterns (beginning with '%') are substituted with | 201 | certain string patterns (beginning with '%') are substituted with |
202 | their actual values. | 202 | their actual values. |