From: Kevin Day Date: Sat, 26 Apr 2025 21:29:11 +0000 (-0500) Subject: Bugfix: Incorrect flags passed to fl_directory_do(). X-Git-Tag: 0.7.1~11 X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=d27d310433caec343531ce7efc076bc482ae5c81;p=fll Bugfix: Incorrect flags passed to fl_directory_do(). The `recurse->flag` should not be passed to the action and other callbacks. --- diff --git a/level_1/fl_directory/c/directory.c b/level_1/fl_directory/c/directory.c index f487171..d82ec37 100644 --- a/level_1/fl_directory/c/directory.c +++ b/level_1/fl_directory/c/directory.c @@ -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; }