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

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