Commit 075acf2f authored by Chris Lamb's avatar Chris Lamb 💬

Disable binwalk's own user configuration for predictable results and to ensure...

Disable binwalk's own user configuration for predictable results and to ensure it does not create (!) unnecessary directories, etc. (Closes: #903444)
parent 68f3bdd9
Pipeline #18686 failed with stage
in 8 minutes and 46 seconds
......@@ -36,6 +36,14 @@ try:
import binwalk
except ImportError:
binwalk = None
else:
# Disable binwalk's own user configuration for predictable results and to
# ensure it does not create (!) unnecessary directories, etc. (re. #903444)
def fn(self):
if not hasattr(fn, '_temp_dir'):
fn._temp_dir = get_temporary_directory('binwalk').name
return fn._temp_dir
binwalk.core.settings.Settings._get_user_config_dir = fn
logger = logging.getLogger(__name__)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment