]> git.baikalelectronics.ru Git - kernel.git/commit
Documentation: fix core_pattern max length
authorJakub Wilk <jwilk@jwilk.net>
Mon, 18 Mar 2019 17:34:21 +0000 (18:34 +0100)
committerJonathan Corbet <corbet@lwn.net>
Mon, 25 Mar 2019 15:53:56 +0000 (09:53 -0600)
commit7fd41b2ea4b164ce16a33a7fbc90c861f5cc1fff
treed0642eb3892d5ffefc8b8c5182cc63db8f396546
parent4aaf1ee2263cac0e2b4dc62f80d181a00410b300
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>
Documentation/sysctl/kernel.txt