about summary refs log tree commit diff stats
path: root/src/include/fileutils.h
diff options
context:
space:
mode:
authorYip Coekjan <69834864+Coekjan@users.noreply.github.com>2024-07-05 17:02:09 +0800
committerGitHub <noreply@github.com>2024-07-05 11:02:09 +0200
commit6ac3716594c5611b6c0b24be0cddc7faf4cc7cdc (patch)
tree33125910bf8e0d8d65d7b480ef560d69dab14a4c /src/include/fileutils.h
parent42bad3ea6b33be5285f5c03fd42838c7810bf789 (diff)
downloadbox64-6ac3716594c5611b6c0b24be0cddc7faf4cc7cdc.tar.gz
box64-6ac3716594c5611b6c0b24be0cddc7faf4cc7cdc.zip
Should not follow symlinks on file path resolution (#1644)
Diffstat (limited to 'src/include/fileutils.h')
-rw-r--r--src/include/fileutils.h4
1 files changed, 3 insertions, 1 deletions
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);