util/nvmutil: make tmp files dotfiles

so that they are hidden. yes.

mkhtemp can take any template now

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2026-03-24 22:44:43 +00:00
parent 1ed2ca6b69
commit 2cee58188c

View File

@@ -128,7 +128,7 @@ xstart(int argc, char *argv[])
if (us.f.dirfd < 0)
err_no_cleanup(errno, "%s: open dir", dir);
if (new_tmpfile(&us.f.tmp_fd, &us.f.tname, dir, NULL) < 0)
if (new_tmpfile(&us.f.tmp_fd, &us.f.tname, dir, ".gbe.XXXXXXXXXX") < 0)
err_no_cleanup(errno, "%s", us.f.tname);
if (fs_dirname_basename(us.f.tname,