mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-29 04:01:27 +01:00
Ensure that anything opened with openat is tracked in our FD map
Missing this was an accident, this was how it was supposed to be. It's very helpful to map FDs to filenames when tracking mmap mappings
This commit is contained in:
1 parent
fec93ea573
commit
2ec41070da
1 file changed
+3
-3
@@ -140,11 +140,11 @@ uint64_t FileManager::Openat([[maybe_unused]] int dirfs, const char *pathname, i
|
||||
|
||||
if (fd == -1)
|
||||
fd = ::openat(dirfs, pathname, flags, mode);
|
||||
|
||||
return fd;
|
||||
}
|
||||
|
||||
FDToNameMap[fd] = pathname;
|
||||
if (fd != -1)
|
||||
FDToNameMap[fd] = pathname;
|
||||
|
||||
return fd;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user