[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Building bash 5.3, rc2, warning about mktemp()
From: |
Stan Marsh |
Subject: |
Building bash 5.3, rc2, warning about mktemp() |
Date: |
Tue, 10 Jun 2025 02:03:39 -0600 |
See below. As far as I can tell, it built OK.
Should I be concerned about the warning?
--- Cut Here ---
rm -f bash
gcc -std=gnu11 -L./builtins -L./lib/readline -L./lib/readline -L./lib/glob
-L./lib/tilde -L./lib/malloc -L./lib/sh -rdynamic -g -O2 -o bash shell.o
eval.o y.tab.o general.o make_cmd.o print_cmd.o dispose_cmd.o execute_cmd.o
variables.o copy_cmd.o error.o expr.o flags.o jobs.o subst.o hashcmd.o
hashlib.o mailcheck.o trap.o input.o unwind_prot.o pathexp.o sig.o test.o
version.o alias.o array.o arrayfunc.o assoc.o braces.o bracecomp.o bashhist.o
bashline.o list.o stringlib.o locale.o findcmd.o redir.o pcomplete.o
pcomplib.o syntax.o xmalloc.o -lbuiltins -lglob -lsh -lreadline -lhistory
-lncurses -ltilde -lmalloc -ldl
./lib/sh/libsh.a(tmpfile.o): In function `sh_mktmpname':
/home/username/Build/bash-5.3-rc2/lib/sh/tmpfile.c:173: warning: the use of
`mktemp' is dangerous, better use `mkstemp' or `mkdtemp'
ls -l bash
-rwxr-xr-x 1 username username 3974244 Jun 10 03:53 bash
--- Cut Here ---
=================================================================================
Please do not send me replies to my posts on the list.
I always read the replies via the web archive, so CC'ing to me is unnecessary.
Note that they always end up in my Spam file anyway, so it is annoying to have
to
periodically clean that out.
- Building bash 5.3, rc2, warning about mktemp(),
Stan Marsh <=