Skip to content

Commit 8d79a54

Browse files
fix: Unzip failure requires user interaction (#1473) (#1479)
1 parent 63de101 commit 8d79a54

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cve_bin_tool/extractor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,9 +182,9 @@ async def extract_file_zip(filename, extraction_path, process_can_fail=True):
182182
is_exe = filename.endswith(".exe")
183183
if await aio_inpath("unzip"):
184184
stdout, stderr, _ = await aio_run_command(
185-
["unzip", "-n", "-d", extraction_path, filename], process_can_fail
185+
["unzip", "-n", "-q", "-d", extraction_path, filename], process_can_fail
186186
)
187-
if stderr or not stdout:
187+
if stderr:
188188
if is_exe:
189189
return 0 # not all .exe files are zipfiles, no need for error
190190
return 1

0 commit comments

Comments
 (0)