From c584170a248583f0454093612ee91b47ac773114 Mon Sep 17 00:00:00 2001 From: Talison Fabio <54823205+talis-fb@users.noreply.github.com> Date: Tue, 8 Apr 2025 11:53:31 -0300 Subject: [PATCH] tweak: replace '.tmp-ouch-' prefix with 'tmp-ouch-' for smart unpack (#788) --- CHANGELOG.md | 2 +- src/commands/decompress.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4788a9f..b0c3c24 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -35,7 +35,7 @@ Categories Used: ### Tweaks - CI refactor [\#578](https://github.com/ouch-org/ouch/pull/578) ([cyqsimon](https://github.com/cyqsimon)) -- Use a more unique name for temporary decompression path [\#725](https://github.com/ouch-org/ouch/pull/725) ([valoq](https://github.com/valoq)) +- Use a prefix `tmp-ouch-` for temporary decompression path name to avoid conflicts [\#725](https://github.com/ouch-org/ouch/pull/725) ([valoq](https://github.com/valoq)) & [\#788](https://github.com/ouch-org/ouch/pull/788) ([talis-fb](https://github.com/talis-fb)) - Run clippy for tests too [\#738](https://github.com/ouch-org/ouch/pull/738) ([marcospb19](https://github.com/marcospb19)) ### Improvements diff --git a/src/commands/decompress.rs b/src/commands/decompress.rs index 981376f..036d1d2 100644 --- a/src/commands/decompress.rs +++ b/src/commands/decompress.rs @@ -346,7 +346,7 @@ fn smart_unpack( question_policy: QuestionPolicy, ) -> crate::Result> { assert!(output_dir.exists()); - let temp_dir = tempfile::Builder::new().prefix(".tmp-ouch-").tempdir_in(output_dir)?; + let temp_dir = tempfile::Builder::new().prefix("tmp-ouch-").tempdir_in(output_dir)?; let temp_dir_path = temp_dir.path(); info_accessible(format!(