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/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core.c') diff --git a/src/core.c b/src/core.c index f31efadd..047d1d17 100644 --- a/src/core.c +++ b/src/core.c @@ -1930,7 +1930,7 @@ int initialize(int argc, const char **argv, char** env, x64emu_t** emulator, elf PrintCollection(&my_context->box64_path, "BOX64 BIN PATH"); // lets build argc/argv stuff printf_log(LOG_INFO, "Looking for %s\n", prog); - my_context->argv[0] = ResolveFile(prog, &my_context->box64_path); + my_context->argv[0] = ResolveFileSoft(prog, &my_context->box64_path); // check if box86 is present { my_context->box86path = box_strdup(my_context->box64path); -- cgit 1.4.1