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:
Ryan Houdek committed 2020-04-12 12:36:20 -07:00
1 parent fec93ea573
commit 2ec41070da
1 file changed
+3 -3
+3 -3
View File
@@ -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;
}