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

@ -108,7 +108,7 @@ pub enum Subcommand {
/// Disable Smart Unpack
#[arg(long)]
no_smart_unpack: bool,
/// Mark sandbox as disabled
#[arg(long, global = true)]
disable_sandbox: bool,
@ -280,6 +280,7 @@ mod tests {
fast: false,
slow: false,
follow_symlinks: false,
disable_sandbox: true,
},
format: Some("tar.gz".into()),
..mock_cli_args()

View File

@ -11,7 +11,7 @@ use crate::{
commands::warn_user_about_loading_zip_in_memory,
extension::CompressionFormat::{self, *},
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,
};

View File

@ -48,7 +48,6 @@ fn run() -> Result<()> {
//let working_dir = args.output_dir
// .clone()
// .unwrap_or_else(|| env::current_dir().unwrap_or_default());
// restrict filesystem access to working_dir;
// 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