condition: check for last not first ')' in firmware test expressions
authorLennart Poettering <lennart@poettering.net>
Fri, 26 Aug 2022 08:36:45 +0000 (10:36 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 26 Aug 2022 08:46:37 +0000 (10:46 +0200)
commit1dc042ae12be9aa0a834eba7747f78079d06fcde
treebc470c0a1179202f4c2aedc76dbafef24619f5dd
parent1a0e065e9f154f46fd68cd45f46310bc7df7a51c
condition: check for last not first ')' in firmware test expressions

I possess a machine with ')' in its BIOS version string, which will
cause the current parser to mistake it as the closing ')' of the
smbios-fields() expression.

Let's make sure we always fo for the last, not the first ')', hence.
src/shared/condition.c