On 2021-01-18 at 14:05 -0500, Chet Ramey wrote:
> On 1/17/21 7:46 PM, Ángel wrote:
>
> > > > [Explanation of when is mktemp() used and patch to remove the
> > > > warning]
> > >
> > > The warning can be ignored.
> >
> > Sure. However, actually removing the spurious warning would not
> > only mak
On 1/17/21 7:46 PM, Ángel wrote:
[Explanation of when is mktemp() used and patch to remove the
warning]
The warning can be ignored.
Sure. However, actually removing the spurious warning would not only
make (some) build systems happier, but also produce less confused
users, so it seemed (pote
7;m building Bash 5.1 from sources. This may be of interest:
> > > >
> > > > /usr/bin/ld: ./lib/sh/libsh.a(tmpfile.o): in function
> > > > `sh_mktmpname':
> > > > /home/jwalton/Build-Scripts/bash-5.1/lib/sh/tmpfile.c:160: warning:
> > > > the use of
lton/Build-Scripts/bash-5.1/lib/sh/tmpfile.c:160: warning:
the use of `mktemp' is dangerous, better use `mkstemp' or `mkdtemp'
It's a spurious warning.
mktemp() would only end up being used (with all its issues) if the OS
doesn't provide a DEV FD or there's no mkdtemp(
_mktmpname':
> > /home/jwalton/Build-Scripts/bash-5.1/lib/sh/tmpfile.c:160: warning:
> > the use of `mktemp' is dangerous, better use `mkstemp' or `mkdtemp'
>
> It's a spurious warning.
mktemp() would only end up being used (with all its issues) if the OS
On 1/14/21 11:45 PM, Jeffrey Walton wrote:
Hi Everyone,
I'm building Bash 5.1 from sources. This may be of interest:
/usr/bin/ld: ./lib/sh/libsh.a(tmpfile.o): in function `sh_mktmpname':
/home/jwalton/Build-Scripts/bash-5.1/lib/sh/tmpfile.c:160: warning:
the use of `mktemp
On 1/14/21 11:45 PM, Jeffrey Walton wrote:
Hi Everyone,
I'm building Bash 5.1 from sources. This may be of interest:
/usr/bin/ld: ./lib/sh/libsh.a(tmpfile.o): in function `sh_mktmpname':
/home/jwalton/Build-Scripts/bash-5.1/lib/sh/tmpfile.c:160: warning:
the use of `mktemp
Hi Everyone,
I'm building Bash 5.1 from sources. This may be of interest:
/usr/bin/ld: ./lib/sh/libsh.a(tmpfile.o): in function `sh_mktmpname':
/home/jwalton/Build-Scripts/bash-5.1/lib/sh/tmpfile.c:160: warning:
the use of `mktemp' is dangerous, better use `mkstemp' or `mkdtemp'
Jeff
$ ./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'
`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
10 matches
Mail list logo