From 6ac3716594c5611b6c0b24be0cddc7faf4cc7cdc Mon Sep 17 00:00:00 2001 From: Yip Coekjan <69834864+Coekjan@users.noreply.github.com> Date: Fri, 5 Jul 2024 17:02:09 +0800 Subject: Should not follow symlinks on file path resolution (#1644) --- src/include/fileutils.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/include/fileutils.h') diff --git a/src/include/fileutils.h b/src/include/fileutils.h index 2e983c74..858c6324 100644 --- a/src/include/fileutils.h +++ b/src/include/fileutils.h @@ -10,8 +10,10 @@ // 0 : doesn't exist, 1: Does exist int FileExist(const char* filename, int flags); -// find a file, using Path if needed +// find a file, using Path if needed, resolving symlinks char* ResolveFile(const char* filename, path_collection_t* paths); +// find a file, using Path if needed, NOT resolving symlinks +char* ResolveFileSoft(const char* filename, path_collection_t* paths); // 1: if file is an x86 elf, 0: if not (or not found) int FileIsX86ELF(const char* filename); -- cgit 1.4.1