mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-10 11:47:38 +02:00
Attempt to fix the local filepath not being detected correctly
This commit is contained in:
@@ -6,6 +6,7 @@ import datetime
|
||||
import json
|
||||
import logging
|
||||
import os
|
||||
import pathlib
|
||||
import sqlite3
|
||||
import urllib
|
||||
import urllib.parse
|
||||
@@ -495,9 +496,12 @@ class SqliteCache(CacheManagerInterface):
|
||||
vollog.debug(
|
||||
f"Duplicate entry for identifier {row['identifier']}: {row['location']} and {output[row['identifier']]}"
|
||||
)
|
||||
local_filepath = self._get_local_filepath(row["location"])
|
||||
if local_filepath and not local_filepath.startswith(
|
||||
tuple(constants.SYMBOL_BASEPATHS)
|
||||
local_filepath = pathlib.Path(self._get_local_filepath(row["location"]))
|
||||
if local_filepath and not any(
|
||||
[
|
||||
local_filepath.is_relative_to(basepath)
|
||||
for basepath in constants.SYMBOL_BASEPATHS
|
||||
]
|
||||
):
|
||||
vollog.debug(
|
||||
f"Location {row['location']} was not in the registered symbol paths and therefore not in the identifier dictionary"
|
||||
|
||||
Reference in New Issue
Block a user