From ba7275f973729ad213469a0dcc24c91c66888879 Mon Sep 17 00:00:00 2001 From: Mike Auty Date: Mon, 26 Dec 2016 18:47:06 +0000 Subject: [PATCH] Allow relative file paths in the pdb scanner prefix variable, for the documentation. --- volatility/framework/automagic/pdbscan.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/volatility/framework/automagic/pdbscan.py b/volatility/framework/automagic/pdbscan.py index 8eaeb8ae5..42918ec87 100644 --- a/volatility/framework/automagic/pdbscan.py +++ b/volatility/framework/automagic/pdbscan.py @@ -162,6 +162,8 @@ class KernelPDBScanner(interfaces.automagic.AutomagicInterface): midfix = os.path.join(kernel['pdb_name'], kernel['GUID'] + "-" + str(kernel['age'])) idd_path = None for prefix in self.prefixes: + if not os.path.isabs(prefix): + prefix = os.path.abspath(os.path.join(__file__, prefix)) for suffix in self.suffixes: if os.path.exists(os.path.join(prefix, midfix + suffix)): idd_path = "file://" + os.path.abspath(os.path.join(prefix, midfix + suffix))