From f49af0b03bd94d2137d2d9938e23d81475287958 Mon Sep 17 00:00:00 2001 From: Boian Bonev Date: Thu, 31 Aug 2023 23:46:56 +0000 Subject: [PATCH] Fix := not preventing further assignments to RUN Closes #256 Suggested by: Aksel Lunde Aase --- src/udev/udev-rules.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/udev/udev-rules.c b/src/udev/udev-rules.c index 198875bc9..32df8b9cb 100644 --- a/src/udev/udev-rules.c +++ b/src/udev/udev-rules.c @@ -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",