Skip to content

Commit

Permalink
bug: Unzip failure requires user interaction (intel#1473)
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonyharrison committed Dec 26, 2021
1 parent cd7b07a commit 0b57721
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cve_bin_tool/extractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,9 @@ async def extract_file_zip(filename, extraction_path, process_can_fail=True):
is_exe = filename.endswith(".exe")
if await aio_inpath("unzip"):
stdout, stderr, _ = await aio_run_command(
["unzip", "-n", "-d", extraction_path, filename], process_can_fail
["unzip", "-n", "-q", "-d", extraction_path, filename], process_can_fail
)
if stderr or not stdout:
if stderr:
if is_exe:
return 0 # not all .exe files are zipfiles, no need for error
return 1
Expand Down

0 comments on commit 0b57721

Please sign in to comment.