Skip to content

Commit

Permalink
Merge pull request #257 from bbonev/issue256
Browse files Browse the repository at this point in the history
Fix := not preventing further assignments to RUN
  • Loading branch information
bbonev authored Sep 30, 2023
2 parents 0d86dd9 + f49af0b commit 072d941
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/udev/udev-rules.c
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 072d941

Please sign in to comment.