From: Kevin Day Date: Sat, 16 Apr 2022 02:19:38 +0000 (-0500) Subject: Bugfix: The f_file_is_at() function is not properly comparing the file type. X-Git-Tag: 0.5.10~206 X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=674001e9eb0e3eaf2761f137d9eff6e46a23f90d;p=fll Bugfix: The f_file_is_at() function is not properly comparing the file type. The check should be checking against the passed file type. This has been revealed by the unit tests that I am writing. --- diff --git a/level_0/f_file/c/file.c b/level_0/f_file/c/file.c index 467ccb4..98de2d6 100644 --- a/level_0/f_file/c/file.c +++ b/level_0/f_file/c/file.c @@ -513,7 +513,7 @@ extern "C" { return F_status_set_error(F_file_stat); } - if (stat_file.st_mode == (S_IFMT & S_IFDIR)) { + if (macro_f_file_type_get(stat_file.st_mode) == type) { return F_true; }