From c1befbcd3eb4a51831260c7c7b743a673512e6a5 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Tue, 24 Mar 2026 18:46:36 +0000 Subject: util/nvmutil: never do cross-filesystem moves make a local TMPDIR instead, where gbe.bin is. this avoids the EXDEV errno, so we don't have to handle it, and it's just better performant for everyone. Signed-off-by: Leah Rowe --- util/libreboot-utils/include/common.h | 11 +++++------ 1 file changed, 5 insertions(+), 6 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 e73f46e7..9429ddeb 100644 --- a/util/libreboot-utils/include/common.h +++ b/util/libreboot-utils/include/common.h @@ -497,11 +497,9 @@ const char *getnvmprogname(void); /* libc hardening */ -int new_tmpfile_at(int dirfd, struct stat *st_dir, - int *fd, char **name); -int new_tmpfile(int *fd, char **path); -int new_tmpdir(int *fd, char **path); -int new_tmp_common(int *fd, char **path, int type); +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 mkhtemp_try_create(int dirfd, struct stat *st_dir_initial, char *fname_copy, @@ -519,7 +517,8 @@ int world_writeable_and_sticky(const char *s, int same_dir(const char *a, const char *b); int tmpdir_policy(const char *path, int *allow_noworld_unsticky); -char *env_tmpdir(int always_sticky, char **tmpdir); +char *env_tmpdir(int always_sticky, char **tmpdir, + char *override_tmpdir); int secure_file(int *fd, struct stat *st, struct stat *expected, -- cgit v1.2.1