[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
warning: the use of `mktemp' is dangerous, better use `mkstemp' or `mkdt
From: |
Hongyi Zhao |
Subject: |
warning: the use of `mktemp' is dangerous, better use `mkstemp' or `mkdtemp' |
Date: |
Tue, 28 Jul 2020 20:19:15 +0800 |
Hi,
On Ubuntu 20.04, I try to compile the git master version of bash with
the followin steps:
$ sudo apt-get build-dep bash
$ git clone https://git.savannah.gnu.org/git/bash.git bash.git
$ cd bash.git
$ ./configure
$ make -j44
[...]
/usr/bin/ld: ./lib/sh/libsh.a(tmpfile.o): in function `sh_mktmpname':
/home/werner/Public/repo/git.savannah.gnu.org/git/bash.git/lib/sh/tmpfile.c:152:
warning: the use of `mktemp' is dangerous, better use `mkstemp' or
`mkdtemp'
[...]
Any hints for fix this warning?
Regards
--
Hongyi Zhao <hongyi.zhao@gmail.com>
- warning: the use of `mktemp' is dangerous, better use `mkstemp' or `mkdtemp',
Hongyi Zhao <=