From: Kevin Day Date: Thu, 20 May 2021 02:39:45 +0000 (-0500) Subject: Regression: "fake skeleton" no longer works due to "file not found". X-Git-Tag: 0.5.4~29 X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=eef839a161e123e4fe406ee58a5d1fbebb97b3c8;p=fll 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. --- 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) {