Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
binwalk
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fact-gitdep
binwalk
Commits
4a12d6f7
Commit
4a12d6f7
authored
Dec 11, 2017
by
devttys0
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added code to always remove files if -r was speicifed.
parent
d5ec3c30
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
extractor.py
src/binwalk/modules/extractor.py
+4
-2
No files found.
src/binwalk/modules/extractor.py
View file @
4a12d6f7
...
...
@@ -611,8 +611,10 @@ class Extractor(Module):
else
:
extract_ok
=
True
# Only clean up files if remove_after_execute was specified
if
extract_ok
==
True
and
self
.
remove_after_execute
:
# Only clean up files if remove_after_execute was specified.
# Only clean up files if the file was extracted sucessfully, or if we've run
# out of extractors.
if
self
.
remove_after_execute
and
(
extract_ok
==
True
or
i
==
(
len
(
rules
)
-
1
)):
# Remove the original file that we extracted,
# if it has not been modified by the extractor.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment