Re: warning: the use of `mktemp' is dangerous, better use `mkstemp' or `mkdtemp'

2020-07-28 Thread Chet Ramey
On 7/28/20 8:19 AM, Hongyi Zhao wrote: > 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 > [...] >

warning: the use of `mktemp' is dangerous, better use `mkstemp' or `mkdtemp'

2020-07-28 Thread Hongyi Zhao
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