diff --git a/test-suite/standalone/test-unwind.c b/test-suite/standalone/test-unwind.c index f9820cc22..f333c8c3a 100644 --- a/test-suite/standalone/test-unwind.c +++ b/test-suite/standalone/test-unwind.c @@ -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);