mirror of
https://github.com/ouch-org/ouch.git
synced 2025-07-19 16:10:53 +00:00
fix subcommand
This commit is contained in:
parent
a4ff65f44c
commit
3a8cc9edda
@ -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()
|
||||||
|
@ -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,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user