From c8b6fd033b86ca43b1bb37b2e1ef23f63fb0fb84 Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Sun, 11 Apr 2021 18:16:16 -0500 Subject: [PATCH] Bugfix: test mode (-t), should be simulating not executing. The rule_options is setup but it seems that I forgot to actually pass it. Set the controller_process_option_execute on the rule_options and then pass rule_options instead of directly passing controller_process_option_execute. --- level_3/controller/c/private-rule.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/level_3/controller/c/private-rule.c b/level_3/controller/c/private-rule.c index 6b8c9ae..7f50aee 100644 --- a/level_3/controller/c/private-rule.c +++ b/level_3/controller/c/private-rule.c @@ -1835,14 +1835,14 @@ extern "C" { f_thread_unlock(&main.thread->lock.rule); f_thread_unlock(&process_other->lock); - rule_options = 0; + rule_options = controller_process_option_execute; if (main.data->parameters[controller_parameter_test].result == f_console_result_found) { rule_options |= controller_rule_option_simulate; } // synchronously execute dependency. - status = controller_rule_process_begin(controller_process_option_execute, alias_other, controller_rule_action_type_start, controller_process_option_execute, process->stack, main, process_other->cache); + status = controller_rule_process_begin(controller_process_option_execute, alias_other, controller_rule_action_type_start, rule_options, process->stack, main, process_other->cache); if (status == F_child || status == F_signal) { f_thread_unlock(&process_other->active); -- 1.8.3.1