Blame SOURCES/0001-iptables-apply-Use-mktemp-instead-of-tempfile.patch

6ef253
From a69b9119bde58b372acb1c3914ee90f2ed48afb8 Mon Sep 17 00:00:00 2001
029dc7
From: Phil Sutter <psutter@redhat.com>
029dc7
Date: Mon, 17 Sep 2018 11:39:50 +0200
029dc7
Subject: [PATCH] iptables-apply: Use mktemp instead of tempfile
029dc7
029dc7
Signed-off-by: Phil Sutter <psutter@redhat.com>
029dc7
---
029dc7
 iptables/iptables-apply | 4 ++--
029dc7
 1 file changed, 2 insertions(+), 2 deletions(-)
029dc7
029dc7
diff --git a/iptables/iptables-apply b/iptables/iptables-apply
029dc7
index 819ca4a459c42..a685b6bbcd7dc 100755
029dc7
--- a/iptables/iptables-apply
029dc7
+++ b/iptables/iptables-apply
029dc7
@@ -111,7 +111,7 @@ if [[ ! -r "$FILE" ]]; then
029dc7
 	exit 2
029dc7
 fi
029dc7
 
029dc7
-COMMANDS=(tempfile "$SAVE" "$RESTORE")
029dc7
+COMMANDS=(mktemp "$SAVE" "$RESTORE")
029dc7
 
029dc7
 for cmd in "${COMMANDS[@]}"; do
029dc7
 	if ! command -v $cmd >/dev/null; then
029dc7
@@ -122,7 +122,7 @@ done
029dc7
 
029dc7
 umask 0700
029dc7
 
029dc7
-TMPFILE=$(tempfile -p iptap)
029dc7
+TMPFILE=$(mktemp)
029dc7
 trap "rm -f $TMPFILE" EXIT HUP INT QUIT ILL TRAP ABRT BUS \
029dc7
 		      FPE USR1 SEGV USR2 PIPE ALRM TERM
029dc7
 
029dc7
-- 
6ef253
2.24.0
029dc7