Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable interactive prompt for password protected archives #773

Merged
merged 1 commit into from
Nov 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions src/extractors/sevenzip.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@ pub fn sevenzip_extractor() -> extractors::common::Extractor {
utility: extractors::common::ExtractorType::External("7zz".to_string()),
extension: "bin".to_string(),
arguments: vec![
"x".to_string(), // Perform extraction
"-y".to_string(), // Assume Yes to all questions
"-o.".to_string(), // Output to current working directory
"x".to_string(), // Perform extraction
"-y".to_string(), // Assume Yes to all questions
"-o.".to_string(), // Output to current working directory
"-p''".to_string(), // Blank password to prevent hangs if archives are password protected
extractors::common::SOURCE_FILE_PLACEHOLDER.to_string(),
],
// If there is trailing data after the compressed data, extraction will happen but exit code will be 2
Expand Down