AD: Allow mixed files path/no path in detection entries

This commit is contained in:
Eugene Sandulenko 2022-01-13 21:00:14 +01:00
parent 00637f3c09
commit 9dae828a38
No known key found for this signature in database
GPG key ID: 014D387312D34F08

View file

@ -483,7 +483,11 @@ void AdvancedMetaEngineDetection::composeFileHashMap(FileMap &allFiles, const Co
if (tstr.lastChar() == '.')
tstr.deleteLastChar();
allFiles[tstr] = *file; // Record the presence of this file
if (efname.lastChar() == '.')
efname.deleteLastChar();
allFiles[tstr] = *file; // Record the presence of this file
allFiles[efname] = *file; // ...and its file name
}
}