Commit 0988b2e2 by devttys0

Code cleanup

parent cc5cf9b2
......@@ -49,9 +49,6 @@ class Extractor(Module):
# squashfs-root-0).
UNIQUE_PATH_DELIMITER = '%%'
# Unprivileged user account to execute external extraction utilities
UNPRIVILEGED_USER_NAME = 'binwalk_safe_user_69'
TITLE = 'Extraction'
ORDER = 9
PRIMARY = False
......@@ -323,8 +320,7 @@ class Extractor(Module):
# Update the last directory listing for the next time we
# extract a file to this same output directory
self.last_directory_listing[
extraction_directory] = directory_listing
self.last_directory_listing[extraction_directory] = directory_listing
def append_rule(self, r):
self.extract_rules.append(r.copy())
......@@ -575,7 +571,7 @@ class Extractor(Module):
else:
output_directory = self.extraction_directories[path]
# Make sure runas user can access this directory
# Make sure run-as user can access this directory
os.chown(output_directory, self.runas_uid, self.runas_gid)
return output_directory
......
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