mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-23 01:54:51 +02:00
Fix the real root cause, files not containing a banner.
This commit is contained in:
@@ -41,7 +41,7 @@ class LinuxSymbolFinder(interfaces.automagic.AutomagicInterface):
|
||||
if not self._linux_banners:
|
||||
return
|
||||
|
||||
mss = scanners.MultiStringScanner(list(self._linux_banners))
|
||||
mss = scanners.MultiStringScanner([x for x in self._linux_banners if x is not None])
|
||||
|
||||
layer = context.memory[layer_name]
|
||||
|
||||
|
||||
@@ -29,8 +29,6 @@ class LinuxSymbolCache(interfaces.automagic.AutomagicInterface):
|
||||
vollog.log(constants.LOGLEVEL_V,
|
||||
"Removing cached path {} for banner {}: files does not exist".format(path, banner))
|
||||
linuxbanners[banner].remove(path)
|
||||
# Rewrite it in case we found any files that were no logner present
|
||||
cls.save_linux_banners(linuxbanners)
|
||||
return linuxbanners
|
||||
|
||||
@classmethod
|
||||
|
||||
Reference in New Issue
Block a user