From f8d9c51a364eb941f6651d1ea7d4977cb5b83ca7 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Tue, 24 Mar 2026 22:19:40 +0000 Subject: util/mkhtemp: template support on util just add a template like yo uwould on other mktemp. it works perfectly now. Signed-off-by: Leah Rowe --- util/libreboot-utils/include/common.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'util/libreboot-utils/include/common.h') diff --git a/util/libreboot-utils/include/common.h b/util/libreboot-utils/include/common.h index 620e95b9..b028e437 100644 --- a/util/libreboot-utils/include/common.h +++ b/util/libreboot-utils/include/common.h @@ -502,9 +502,12 @@ const char *getnvmprogname(void); /* libc hardening */ -int new_tmpfile(int *fd, char **path, char *tmpdir); -int new_tmpdir(int *fd, char **path, char *tmpdir); -int new_tmp_common(int *fd, char **path, int type, char *tmpdir); +int new_tmpfile(int *fd, char **path, char *tmpdir, + const char *template); +int new_tmpdir(int *fd, char **path, char *tmpdir, + const char *template); +int new_tmp_common(int *fd, char **path, int type, + char *tmpdir, const char *template); int mkhtemp_try_create(int dirfd, struct stat *st_dir_initial, char *fname_copy, -- cgit v1.2.1