projects
/
platform
/
upstream
/
iptables.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
b7d497e
)
apply mktemp fix
author
Anas Nashif
<anas.nashif@intel.com>
Mon, 5 Nov 2012 17:17:13 +0000
(09:17 -0800)
committer
José Bollo
<jose.bollo@open.eurogiciel.org>
Mon, 10 Nov 2014 16:08:03 +0000
(17:08 +0100)
iptables/iptables-apply
patch
|
blob
|
history
diff --git
a/iptables/iptables-apply
b/iptables/iptables-apply
index
86b8d5a
..
112072c
100755
(executable)
--- a/
iptables/iptables-apply
+++ b/
iptables/iptables-apply
@@
-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 ipta
p)
+TMPFILE=$(
mktem
p)
trap "rm -f $TMPFILE" EXIT 1 2 3 4 5 6 7 8 10 11 12 13 14 15
if ! "$SAVE" >"$TMPFILE"; then