From 28989740b2063e9ac00d23e3727b78482c505528 Mon Sep 17 00:00:00 2001 From: Thomas Woerner Date: Wed, 13 Apr 2016 19:07:50 +0200 Subject: [PATCH] iMissing iptables-apply mktemp patch --- iptables-1.6.0-iptables-apply_mktemp.patch | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 iptables-1.6.0-iptables-apply_mktemp.patch diff --git a/iptables-1.6.0-iptables-apply_mktemp.patch b/iptables-1.6.0-iptables-apply_mktemp.patch new file mode 100644 index 0000000..607a611 --- /dev/null +++ b/iptables-1.6.0-iptables-apply_mktemp.patch @@ -0,0 +1,21 @@ +diff -up iptables-1.6.0/iptables/iptables-apply.iptables-apply_mktemp iptables-1.6.0/iptables/iptables-apply +--- iptables-1.6.0/iptables/iptables-apply.iptables-apply_mktemp 2015-12-09 13:55:06.000000000 +0100 ++++ iptables-1.6.0/iptables/iptables-apply 2016-04-13 17:44:07.130453958 +0200 +@@ -111,7 +111,7 @@ if [[ ! -r "$FILE" ]]; then + exit 2 + fi + +-COMMANDS=(tempfile "$SAVE" "$RESTORE") ++COMMANDS=(mktemp "$SAVE" "$RESTORE") + + for cmd in "${COMMANDS[@]}"; do + if ! command -v $cmd >/dev/null; then +@@ -122,7 +122,7 @@ done + + umask 0700 + +-TMPFILE=$(tempfile -p iptap) ++TMPFILE=$(mktemp) + trap "rm -f $TMPFILE" EXIT 1 2 3 4 5 6 7 8 10 11 12 13 14 15 + + if ! "$SAVE" >"$TMPFILE"; then