Merge pull request #257 from bbonev/issue256

Fix := not preventing further assignments to RUN
This commit is contained in:
Boian Bonev 2023-09-30 19:18:50 +03:00 committed by GitHub
commit 072d94137f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2602,6 +2602,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",