From 1e4b66632494f1193c5f5366fc060704063c72fc Mon Sep 17 00:00:00 2001 From: tb <> Date: Tue, 7 Oct 2025 15:41:19 +0000 Subject: Revert previous. Let's deal with it when the portable release is out. --- src/regress/lib/libcrypto/test/test.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/regress/lib/libcrypto/test/test.c b/src/regress/lib/libcrypto/test/test.c index af30e33e5e..c99e2c6acc 100644 --- a/src/regress/lib/libcrypto/test/test.c +++ b/src/regress/lib/libcrypto/test/test.c @@ -1,4 +1,4 @@ -/* $OpenBSD: test.c,v 1.5 2025/10/07 15:36:30 tb Exp $ */ +/* $OpenBSD: test.c,v 1.6 2025/10/07 15:41:19 tb Exp $ */ /* * Copyright (c) 2025 Joshua Sing * @@ -24,10 +24,6 @@ #include "test.h" -#ifndef TEST_TEMP -#define TEST_TEMP "/tmp/" -#endif - struct test { struct test *parent; char *name; @@ -71,8 +67,8 @@ test_init(void) return t; /* Create a temporary file for logging in non-verbose mode */ - if ((asprintf(&tmp_file, "%slibressl-test.XXXXXXXX", TEST_TEMP)) == -1) - err(1, "asprintf"); + if ((tmp_file = strdup("/tmp/libressl-test.XXXXXXXX")) == NULL) + err(1, "strdup"); if ((out_fd = mkstemp(tmp_file)) == -1) err(1, "mkstemp"); -- cgit v1.2.3-55-g6feb