]> git.ipfire.org Git - thirdparty/systemd.git/commit
shared/verbs: allow all groups to be named
authorZbigniew Jędrzejewski-Szmek <zbyszek@amutable.com>
Wed, 13 May 2026 05:47:40 +0000 (07:47 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@amutable.com>
Wed, 13 May 2026 07:00:41 +0000 (09:00 +0200)
commite794b904daf89b28f98db7910edd32398e63f0a9
treebc2c8bbc366546ed74bd55f791a242f3059fac3c
parentb5038cfc65952b0b71531a9984ed94fb136abffa
shared/verbs: allow all groups to be named

When verb groups were added, I assumed that the first group will always
by the unnamed group, or in other words, that VERB_GROUP() line cannot
appear first. This provides an additional check on the whether the verbs
haven't been reordered by the compiler or linker. But that check is weak
and we can do a better check anyway. And this limitation is unexpected,
since we allow that for OPTIONs. The code should all work without an
unnamed group, once this assertion is removed.
src/shared/verbs.c