[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#993739: blends-common: tempfile has to be replaced by mktemp



Hi Andreas,

I have submitted a merge request on salsa

https://salsa.debian.org/blends-team/blends/-/merge_requests/8

applying the patch attached.

Best wishes,

Cédric
>From e555f8405ea4e2cf90a8d50261545665ab49605c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?C=C3=A9dric=20Boutillier?= <boutil@debian.org>
Date: Wed, 8 Sep 2021 12:14:02 +0200
Subject: [PATCH] Replace deprecated temfile by mktemp

debianutils 5.x removed the script `tempfile`, which has to be replaced
by `mktemp` from the coreutils package.
---
 debian/changelog                      | 5 +++++
 share/blends/unixgroups/blend-actions | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 88c3aa1..d0f823d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,7 +1,12 @@
 blends (0.7.4) UNRELEASED; urgency=medium
 
+  [ Gianfranco Costamagna ]
   * Add Ubuntu disco and eoan sources.list files
 
+  [ Cédric Boutillier ]
+  * Replace deprecated `tempfile` by `mktemp` in blend-actions script (Closes:
+    #993739)
+
  -- Gianfranco Costamagna <locutusofborg@debian.org>  Fri, 14 Jun 2019 00:58:11 +0200
 
 blends (0.7.3) experimental; urgency=medium
diff --git a/share/blends/unixgroups/blend-actions b/share/blends/unixgroups/blend-actions
index 2b12a50..9452d54 100644
--- a/share/blends/unixgroups/blend-actions
+++ b/share/blends/unixgroups/blend-actions
@@ -126,7 +126,7 @@ getAllUsers() {
 		RET=64 # EX_USAGE
 	else
 		SIMPLE=$1
-		TMPFILE=`tempfile`
+		TMPFILE=`mktemp`
 		(IFS=":"
 			while read user pass uid gid name rest ; do
 				if [ "$uid" != "" ] ; then
-- 
2.33.0


Reply to: