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

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