]> Kevux Git Server - fll/commitdiff
Bugfix: test mode (-t), should be simulating not executing.
authorKevin Day <thekevinday@gmail.com>
Sun, 11 Apr 2021 23:16:16 +0000 (18:16 -0500)
committerKevin Day <thekevinday@gmail.com>
Sun, 11 Apr 2021 23:16:16 +0000 (18:16 -0500)
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

index 6b8c9ae0a46d4c3c30ba12c168cefbe98a4bde1c..7f50aee13b6bf917cc26438a7d348545a17a0f99 100644 (file)
@@ -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);