]> Kevux Git Server - fll/commitdiff
Bugfix: Incorrect flags passed to fl_directory_do().
authorKevin Day <Kevin@kevux.org>
Sat, 26 Apr 2025 21:29:11 +0000 (16:29 -0500)
committerKevin Day <Kevin@kevux.org>
Sat, 26 Apr 2025 21:29:11 +0000 (16:29 -0500)
The `recurse->flag` should not be passed to the action and other callbacks.

level_1/fl_directory/c/directory.c

index f487171a6b0f9399b5059742dab54d2f77944759..d82ec37182988720c5c4b952c6aac6b93fd65f63 100644 (file)
@@ -158,10 +158,10 @@ extern "C" {
 
         recurse->state.status = F_okay;
 
-        recurse->action(recurse, path, flag_actions[action] | recurse->flag | f_directory_recurse_do_flag_directory_d);
+        recurse->action(recurse, path, flag_actions[action] | f_directory_recurse_do_flag_directory_d);
 
         if (F_status_is_error(recurse->state.status)) {
-          private_inline_fl_directory_do_handle(recurse, path, flag_actions[action] | recurse->flag | f_directory_recurse_do_flag_directory_d);
+          private_inline_fl_directory_do_handle(recurse, path, flag_actions[action] | f_directory_recurse_do_flag_directory_d);
           if (F_status_is_error(recurse->state.status)) break;
         }