]> Kevux Git Server - kevux-tools/commit
Bugfix: File not found errors with f_file_access().
authorKevin Day <Kevin@kevux.org>
Tue, 17 Jun 2025 03:48:44 +0000 (22:48 -0500)
committerKevin Day <Kevin@kevux.org>
Tue, 17 Jun 2025 03:48:44 +0000 (22:48 -0500)
commit6c3d8a13f68a82903dd0c978f90dded0bc8fc33c
treec77381fb444e4a45071fac86ac676a2fd2c746a3
parentd0efa3b58990421b54a7d0ac078bedc80b773458
Bugfix: File not found errors with f_file_access().

This is happening because the symbolic link is being followed.
Avoid this behavior by switching to using f_file_access_at().
Set the directory to the current working directory, which happens to be `-100`.

I need to revisit this once I decided on how I am going to handle the CWD of `-100` for the FLL library as a whole.

Ignore file not found errors on access checks.
If the file does not exist, then do not care if the access check for a non-existent file fails.
sources/c/program/kevux/tools/remove/main/common/print.c
sources/c/program/kevux/tools/remove/main/common/print.h
sources/c/program/kevux/tools/remove/main/preprocess.c
sources/c/program/kevux/tools/remove/main/preprocess.h