[minicoredumper] Use mktemp instead of tempfile
Anders Wallin
wallinux at gmail.com
Mon Apr 24 14:21:57 CEST 2017
tempfile is deprecated in favor for mktemp, see
http://stackoverflow.com/questions/18716658/whats-the-difference-between-tempfile-and-mktemp
The patch required to change this is;
>From ec88232c9ff2fa6edadf0515f4823c54093e4b2f Mon Sep 17 00:00:00 2001
Message-Id: <
ec88232c9ff2fa6edadf0515f4823c54093e4b2f.1486393813.git.anders.wallin at windriver.com
>
From: Anders Wallin <anders.wallin at windriver.com>
Date: Mon, 6 Feb 2017 16:10:07 +0100
Subject: [PATCH 1/1] using mktemp instead of tempfile
Signed-off-by: Anders Wallin <anders.wallin at windriver.com>
---
src/minicoredumper_trigger/minicoredumper_trigger | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/minicoredumper_trigger/minicoredumper_trigger
b/src/minicoredumper_trigger/minicoredumper_trigger
index 0e2b822..167a20e 100755
--- a/src/minicoredumper_trigger/minicoredumper_trigger
+++ b/src/minicoredumper_trigger/minicoredumper_trigger
@@ -63,8 +63,8 @@ fi
mkdir -p "$1"
-cfgfile=`tempfile`
-rcptfile=`tempfile`
+cfgfile=`mktemp`
+rcptfile=`mktemp`
# create config with specified dump dir
cat > $cfgfile << EOF
--
2.11.0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linutronix.de/pipermail/minicoredumper/attachments/20170424/35378a4b/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: using-mktemp-instead-of-tempfile.patch
Type: text/x-patch
Size: 937 bytes
Desc: not available
URL: <http://lists.linutronix.de/pipermail/minicoredumper/attachments/20170424/35378a4b/attachment.bin>
More information about the minicoredumper
mailing list