Package: cron
Version: 3.0pl1-136ubuntu1
Severity: minor

Dear Maintainer,

tempfile(1) has been removed from debianutils >= 5.0. The attached
patch changes to using the more portable mktemp(1) instead.
>From fbb78b2e96817efbb7201606ae475d1c1f4fd46f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ville=20Skytt=C3=A4?= <ville.sky...@iki.fi>
Date: Wed, 3 Nov 2021 19:00:20 +0200
Subject: [PATCH] Use mktemp instead of tempfile

tempfile(1) has been removed from debianutils >= 5.0. Use the more
portable mktemp(1) instead.
---
 debian/examples/cron-tasks-review.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/examples/cron-tasks-review.sh 
b/debian/examples/cron-tasks-review.sh
index 5e8e112..f212b18 100644
--- a/debian/examples/cron-tasks-review.sh
+++ b/debian/examples/cron-tasks-review.sh
@@ -162,7 +162,7 @@ echo $EXTRA_OPTS | grep -q -- '-l' && use_lsb="yes"
 run_opts=""
 [ "$use_lsb" = "yes" ] &&  run_opts="--lsbsysinit"
 
-temp=`tempfile` || { echo "ERROR: Cannot create temporary file" >&2 ; exit 1; }
+temp=`mktemp` || { echo "ERROR: Cannot create temporary file" >&2 ; exit 1; }
 trap "rm -f $temp" 0 1 2 3 13 15
 
 # Now review the scripts, note that cron does not use run-parts to run these
-- 
2.25.1

Reply via email to