From 17485fda51d0458fef27a38aec5e07a3f295476b Mon Sep 17 00:00:00 2001 From: Florian Festi Date: Tue, 13 Dec 2022 14:32:28 +0100 Subject: [PATCH] Remove tmp file Resolves: #2151261 --- BZ-2091000-remove-tmp-file.patch | 21 +++++++++++++++++++++ scl-utils.spec | 6 +++++- 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 BZ-2091000-remove-tmp-file.patch diff --git a/BZ-2091000-remove-tmp-file.patch b/BZ-2091000-remove-tmp-file.patch new file mode 100644 index 0000000..3c4436c --- /dev/null +++ b/BZ-2091000-remove-tmp-file.patch @@ -0,0 +1,21 @@ +From 864844ecc11f8cf65cd97bcffdb803211f7edaa4 Mon Sep 17 00:00:00 2001 +From: Piotr Wilkosz +Date: Mon, 23 May 2022 16:14:13 +0200 +Subject: [PATCH] remove tmp file at exit + +--- + src/fallback.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/fallback.c b/src/fallback.c +index c907a34..e67654a 100644 +--- a/src/fallback.c ++++ b/src/fallback.c +@@ -246,6 +246,7 @@ scl_rc fallback_run_command(char * const colnames[], const char *cmd, bool exec) + enable_path = _free(enable_path); + colpath = _free(colpath); + bash_cmd = _free(bash_cmd); ++ unlink(tmp); + + return ret; + } diff --git a/scl-utils.spec b/scl-utils.spec index 4566158..bfe04e8 100644 --- a/scl-utils.spec +++ b/scl-utils.spec @@ -4,7 +4,7 @@ Name: scl-utils Epoch: 1 Version: 2.0.3 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Utilities for alternative packaging License: GPLv2+ @@ -19,6 +19,7 @@ Requires: %{_bindir}/modulecmd Patch1: 0003-Scl-utils-layout-patch-from-fedora-famillecollet.com.patch Patch2: BZ-2056462-do-not-error-out-on-SIGINT.patch +Patch3: BZ-2091000-remove-tmp-file.patch %description Run-time utility for alternative packaging. @@ -81,6 +82,9 @@ make check %{_rpmconfigdir}/brp-scl-python-bytecompile %changelog +* Tue Dec 13 2022 Florian Festi - 1:2.0.3-4 +- Remove tmp file (#2151261) + * Mon Feb 21 2022 Michal Domonkos - 1:2.0.3-3 - Don't error out when command receives SIGINT (#2056462)