Skip to content

Commit

Permalink
Linux: Fixes typo in removing RESOLVE_IN_ROOT flag
Browse files Browse the repository at this point in the history
  • Loading branch information
Sonicadvance1 committed Jan 2, 2025
1 parent e32c538 commit 19de7f2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 19de7f2

Please sign in to comment.