From 674001e9eb0e3eaf2761f137d9eff6e46a23f90d Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Fri, 15 Apr 2022 21:19:38 -0500 Subject: [PATCH] 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. --- level_0/f_file/c/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 1.8.3.1