Merged PR 785950: Check is_non_file for path SandboxEvents

Check is_non_file for path SandboxEvents
This commit is contained in:
Marcelo Lynch 🧉 2024-05-20 21:22:13 +00:00
Родитель e21e211534
Коммит 940a363fe4
1 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -336,6 +336,10 @@ bool BxlObserver::ResolveEventPaths(buildxl::linux::SandboxEvent& event) {
break;
}
if (is_non_file(event.GetMode())) {
return false;
}
// After normalization, we should have valid absolute paths. If not, the file descriptor or paths were not associated to files to begin with, and we shouldn't proceed with the report
if (event.GetSrcPath().empty()) {
LOG_DEBUG("[ResolveEventPaths] Empty src path after normalization. Original event had path type %d", pathType);