From eef839a161e123e4fe406ee58a5d1fbebb97b3c8 Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Wed, 19 May 2021 21:39:45 -0500 Subject: [PATCH] Regression: "fake skeleton" no longer works due to "file not found". ERROR: Unable to create file 'data/build/defines', could not find file. This error message is a bit nonsensical because it is supposed to create a file if it does not exist. This is a regression in that at some point f_file_is() started returning F_file_found_not with error bit set and the skeleton program is only expecting F_file_found_not without the error bit set. Make the test error-bit neutral. --- level_3/fake/c/private-skeleton.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/level_3/fake/c/private-skeleton.c b/level_3/fake/c/private-skeleton.c index 0a8201f..f138f89 100644 --- a/level_3/fake/c/private-skeleton.c +++ b/level_3/fake/c/private-skeleton.c @@ -207,6 +207,7 @@ extern "C" { } else if (F_status_is_error(status)) { fll_error_file_print(main.error, F_status_set_fine(status), "f_directory_exists", F_true, path.string, "create", fll_error_file_type_directory); + return status; } @@ -251,7 +252,7 @@ extern "C" { return F_status_set_warning(F_none); } - else if (status == F_file_found_not) { + else if (F_status_set_fine(status) == F_file_found_not) { mode_t mode = f_file_mode_all_rw; if (executable) { -- 1.8.3.1