Commit 259e5cf8 by devttys0

Updated magic file error checking

parent 8e9f561d
......@@ -148,7 +148,7 @@ class MagicParser(object):
for fname in files:
if fname:
if os.path.exists(fname):
if os.path.exists(fname) and os.path.isfile(fname):
self.parse_file(fname)
else:
binwalk.core.common.warning("Magic file '%s' does not exist!" % fname)
......
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