Fix := not preventing further assignments to RUN

Closes #256

Suggested by: Aksel Lunde Aase
This commit is contained in:
Boian Bonev 2023-08-31 23:46:56 +00:00
parent b9cc389aab
commit f49af0b03b
No known key found for this signature in database
GPG Key ID: 1365720913D2F22D

View File

@ -2601,6 +2601,10 @@ int udev_rules_apply_to_event(struct udev_rules *rules,
case TK_A_RUN_PROGRAM: {
struct udev_list_entry *entry;
if (event->run_final)
break;
if (cur->key.op == OP_ASSIGN_FINAL)
event->run_final = true;
if (cur->key.op == OP_ASSIGN || cur->key.op == OP_ASSIGN_FINAL)
udev_list_cleanup(&event->run_list);
log_debug("RUN '%s' %s:%u",