Commit cc809ed8 authored by Jakub Wilk's avatar Jakub Wilk Committed by Jonathan Corbet

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: default avatarJakub Wilk <jwilk@jwilk.net>
Signed-off-by: default avatarJonathan Corbet <corbet@lwn.net>
parent 98348577
......@@ -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.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment