]> git.ipfire.org Git - thirdparty/systemd.git/commit
udev_rules_parse_file: issue diagnostics about duplicate LABEL tokens 26739/head
authorDmitry V. Levin <ldv@strace.io>
Fri, 10 Mar 2023 08:00:00 +0000 (08:00 +0000)
committerDmitry V. Levin <ldv@strace.io>
Fri, 10 Mar 2023 17:10:41 +0000 (17:10 +0000)
commitb2f7bb760ac75820ee82a7dbaa23b7c21c08e2de
treef2b25d6d4ca45ada70a504880c61d3b13e7ec6a7
parentc8f39ddcf6b0e8560dcecfc21f428114ff69bfb0
udev_rules_parse_file: issue diagnostics about duplicate LABEL tokens

When a rules contains several LABEL tokens, the parser used to silently
discard all of them besides the last one without any diagnostics at all.
It's time to break the vow of silence and let the parser issue a warning.
src/udev/udev-rules.c
test/units/testsuite-17.11.sh