diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-24 18:46:36 +0000 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-24 18:46:36 +0000 |
| commit | c1befbcd3eb4a51831260c7c7b743a673512e6a5 (patch) | |
| tree | 04fee08997783de473bdd69d12f6b6cfc4c2b558 /util/libreboot-utils/include/common.h | |
| parent | 6593e76c6a17d1e0cb82a2f29e832348fa9aa5ca (diff) | |
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 <leah@libreboot.org>
Diffstat (limited to 'util/libreboot-utils/include/common.h')
| -rw-r--r-- | util/libreboot-utils/include/common.h | 11 |
1 files changed, 5 insertions, 6 deletions
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, |
