fix subcommand

This commit is contained in:
valoq 2025-07-12 18:26:29 +02:00
parent a4ff65f44c
commit 3a8cc9edda
No known key found for this signature in database
GPG Key ID: 19F09A0FB865CBD8
3 changed files with 3 additions and 3 deletions

View File

@ -280,6 +280,7 @@ mod tests {
fast: false, fast: false,
slow: false, slow: false,
follow_symlinks: false, follow_symlinks: false,
disable_sandbox: true,
}, },
format: Some("tar.gz".into()), format: Some("tar.gz".into()),
..mock_cli_args() ..mock_cli_args()

View File

@ -11,7 +11,7 @@ use crate::{
commands::warn_user_about_loading_zip_in_memory, commands::warn_user_about_loading_zip_in_memory,
extension::CompressionFormat::{self, *}, extension::CompressionFormat::{self, *},
list::{self, FileInArchive, ListOptions}, list::{self, FileInArchive, ListOptions},
utils::{io::lock_and_flush_output_stdio, user_wants_to_continue, landlock}, utils::{io::lock_and_flush_output_stdio, landlock, user_wants_to_continue},
QuestionAction, QuestionPolicy, BUFFER_CAPACITY, QuestionAction, QuestionPolicy, BUFFER_CAPACITY,
}; };

View File

@ -48,7 +48,6 @@ fn run() -> Result<()> {
//let working_dir = args.output_dir //let working_dir = args.output_dir
// .clone() // .clone()
// .unwrap_or_else(|| env::current_dir().unwrap_or_default()); // .unwrap_or_else(|| env::current_dir().unwrap_or_default());
// restrict filesystem access to working_dir; // restrict filesystem access to working_dir;
// 1. working_dir is either the output_dir specified by the -d option or // 1. working_dir is either the output_dir specified by the -d option or
// 2. it is the temporary .tmp-ouch-XXXXXX directory that is renamed after decompression // 2. it is the temporary .tmp-ouch-XXXXXX directory that is renamed after decompression