NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
bin/60899: syntax of config(1) options is not documented
>Number: 60899
>Category: bin
>Synopsis: syntax of config(1) options is not documented
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Oct 18 11:30:00 +0000 2026
>Originator: Valery Ushakov
>Release: NetBSD 11.0
>Organization:
>Environment:
>Description:
config(5) does not document the syntax of "value" in "defaparam" or "options".
When you learn from RTFS what the syntax is, you are still in for a
surprise, b/c
options CNMAGIC="\"\\x27\\x01\""
results in
#define CNMAGIC "\x27\x01"
but adding parens:
options CNMAGIC="(\"\\x27\\x01\")"
results in
#define CNMAGIC (\"\\x27\\x01\")
See fprintstr() in usr.bin/config/mkheaders.c
>How-To-Repeat:
Try to specify a kernel config option value that is not a simple string.
>Fix:
Home |
Main Index |
Thread Index |
Old Index