1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-04-30 03:40:34 +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:
Thien-Thi Nguyen 2010-01-13 09:49:44 +01:00 committed by Andy Wingo
parent e744e076fa
commit bd4b6c1a83

View file

@ -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);