mirror of
https://github.com/systemd/systemd.git
synced 2025-03-25 18:50:18 +03:00
Check for final assignments in RUN keys (#12309)
As described in #12291
This commit is contained in:
parent
c424bed180
commit
5a1ee07302
@ -2442,6 +2442,11 @@ int udev_rules_apply_to_event(
|
||||
case TK_A_RUN_BUILTIN:
|
||||
case TK_A_RUN_PROGRAM: {
|
||||
_cleanup_free_ char *cmd = NULL;
|
||||
|
||||
if (event->run_final)
|
||||
break;
|
||||
if (cur->key.op == OP_ASSIGN_FINAL)
|
||||
event->run_final = true;
|
||||
|
||||
if (IN_SET(cur->key.op, OP_ASSIGN, OP_ASSIGN_FINAL))
|
||||
ordered_hashmap_clear_free_key(event->run_list);
|
||||
|
Loading…
x
Reference in New Issue
Block a user