mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-30 20:00:19 +02:00
Use mkstemp' instead of
mktemp'.
* test-suite/standalone/test-unwind.c (check_ports): Use `mkstemp' instead of `mktemp'. Signed-off-by: Thien-Thi Nguyen <ttn@gnuvola.org>
This commit is contained in:
parent
e744e076fa
commit
bd4b6c1a83
1 changed files with 3 additions and 1 deletions
|
@ -210,7 +210,9 @@ check_ports ()
|
|||
strcpy (filename, tmpdir);
|
||||
strcat (filename, FILENAME_TEMPLATE);
|
||||
|
||||
if (mktemp (filename) == NULL)
|
||||
/* Sanity check: Make sure that `filename' is actually writeable.
|
||||
We used to use mktemp(3), but that is now considered a security risk. */
|
||||
if (0 > mkstemp (filename))
|
||||
exit (1);
|
||||
|
||||
scm_dynwind_begin (0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue