]> git.ipfire.org Git - thirdparty/systemd.git/commit
rule-syntax-check: PROGRAM is not supposed to get value assigned
authorFranck Bui <fbui@suse.com>
Fri, 23 Feb 2018 15:54:40 +0000 (16:54 +0100)
committerFranck Bui <fbui@suse.com>
Tue, 27 Feb 2018 13:38:23 +0000 (14:38 +0100)
commit905ca72a8fc174be0d012c2c87fa6f0437bc9790
tree5257f10c62ccd1105bd6ea70d954553ca5bdccbf
parent71232aac41bf7bf5dd309e8d61e9771ed985f206
rule-syntax-check: PROGRAM is not supposed to get value assigned

In udev man page, "PROGRAM" key is part of the keys which are used for
matching purposes so it should only be used with the compare operator "==".

Actually it doesn't really make sense to assign it a value.

udev code allows both "=" and "==" for PROGRAM and both are handled the same
way but for consistencies it's better to have only the compare operator allowed
by the rule syntax checker.

No rules shipped by systemd use PROGRAM key so nothing need to be changed in
our rule files.
test/rule-syntax-check.py