diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-24 22:19:40 +0000 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-24 22:19:40 +0000 |
| commit | f8d9c51a364eb941f6651d1ea7d4977cb5b83ca7 (patch) | |
| tree | 49ea1fabc9efa2f7229fe3fabd46a94a9cb54931 /util/libreboot-utils/include | |
| parent | b8a045ef86ab439accc0717daeb841aa065b86d6 (diff) | |
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 <leah@libreboot.org>
Diffstat (limited to 'util/libreboot-utils/include')
| -rw-r--r-- | util/libreboot-utils/include/common.h | 9 |
1 files changed, 6 insertions, 3 deletions
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, |
