mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-03-25 13:29:03 +02:00
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:
@@ -128,7 +128,7 @@ xstart(int argc, char *argv[])
|
|||||||
if (us.f.dirfd < 0)
|
if (us.f.dirfd < 0)
|
||||||
err_no_cleanup(errno, "%s: open dir", dir);
|
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);
|
err_no_cleanup(errno, "%s", us.f.tname);
|
||||||
|
|
||||||
if (fs_dirname_basename(us.f.tname,
|
if (fs_dirname_basename(us.f.tname,
|
||||||
|
|||||||
Reference in New Issue
Block a user