From: Kevin Day Date: Sun, 11 Apr 2021 23:16:16 +0000 (-0500) Subject: Bugfix: test mode (-t), should be simulating not executing. X-Git-Tag: 0.5.3~55 X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=c8b6fd033b86ca43b1bb37b2e1ef23f63fb0fb84;p=fll 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. --- 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);