Skip to content

Commit

Permalink
Fix := not preventing further assignments to RUN
Browse files Browse the repository at this point in the history
Closes #256

Suggested by: Aksel Lunde Aase
  • Loading branch information
bbonev committed Aug 31, 2023
1 parent b9cc389 commit f49af0b
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 @@ -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",
Expand Down

0 comments on commit f49af0b

Please sign in to comment.