[minicoredumper] Use mktemp instead of tempfile

John Ogness john.ogness at linutronix.de
Tue May 9 09:17:36 CEST 2017


Applied. Thank you.

cdc1faf1212a51e89b477468876e229223fceb9a

I extended the commit message and made the change to the build.sh script
as well.

John Ogness


On 2017-04-24, Anders Wallin <wallinux at gmail.com> wrote:
> 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




More information about the minicoredumper mailing list