]> git.ipfire.org Git - thirdparty/systemd.git/commit
udev-rules: check token delimiters
authorDmitry V. Levin <ldv@strace.io>
Thu, 23 Mar 2023 08:00:00 +0000 (08:00 +0000)
committerDmitry V. Levin <ldv@strace.io>
Mon, 27 Mar 2023 10:00:30 +0000 (10:00 +0000)
commitacc1954a03940b34aab4b814248e9ddf7e49a901
treea6c25bf43b6fa8c38bf8d50532c81453203c858e
parent9b419eb0b813868ed442e239661f78f8a92222ae
udev-rules: check token delimiters

When udev_rules_parse_file() is called by udevadm verify, issue warnings
about the following conditions in udev rules:
* the first token in the rule is preceded with a comma
* the last token in the rule is followed by a comma
* there is no comma between tokens
* there is no whitespace between tokens
* there is more than a single comma between tokens
* there is whitespace between a token and a comma
* there is no whitespace after comma
src/udev/udev-rules.c
test/units/testsuite-17.11.sh