]> Kevux Git Server - fll/commitdiff
Bugfix: f_file_not_found should be considered an error
authorKevin Day <thekevinday@gmail.com>
Sun, 26 Apr 2020 22:11:07 +0000 (17:11 -0500)
committerKevin Day <thekevinday@gmail.com>
Sun, 26 Apr 2020 22:11:07 +0000 (17:11 -0500)
level_0/f_file/c/file.c

index 33d8259b476e6b8378c8696ba9e9202cd6470927..3c55f0f5e2df3dbff061f8c7aa07633627246145 100644 (file)
@@ -306,7 +306,7 @@ extern "C" {
         return f_status_set_error(f_invalid_directory);
       }
       else if (errno == ENOENT) {
-        return f_file_not_found;
+        return f_status_set_error(f_file_not_found);
       }
       else if (errno == EACCES) {
         return f_status_set_error(f_access_denied);