From 19de7f2785ebafd2939bab3c21f06a5558c7ef6e Mon Sep 17 00:00:00 2001 From: Ryan Houdek Date: Thu, 2 Jan 2025 10:18:07 -0800 Subject: [PATCH] Linux: Fixes typo in removing RESOLVE_IN_ROOT flag --- Source/Tools/LinuxEmulation/LinuxSyscalls/FileManagement.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Tools/LinuxEmulation/LinuxSyscalls/FileManagement.cpp b/Source/Tools/LinuxEmulation/LinuxSyscalls/FileManagement.cpp index 82ba52839f..6df6a8c56e 100644 --- a/Source/Tools/LinuxEmulation/LinuxSyscalls/FileManagement.cpp +++ b/Source/Tools/LinuxEmulation/LinuxSyscalls/FileManagement.cpp @@ -948,7 +948,7 @@ uint64_t FileManager::Openat2(int dirfs, const char* pathname, FEX::HLE::open_ho how->resolve |= RESOLVE_IN_ROOT; } fd = ::syscall(SYSCALL_DEF(openat2), Path.first, Path.second, how, usize); - how->resolve &= RESOLVE_IN_ROOT; + how->resolve &= ~RESOLVE_IN_ROOT; if (fd == -1 && errno == EXDEV) { // This means a magic symlink (/proc/foo) was involved. In this case we // just punt and do the access without RESOLVE_IN_ROOT.