diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-22 21:08:18 +0000 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-22 21:54:04 +0000 |
| commit | ca92e7831abe1ef26b7680c66f8ba06ddc68f076 (patch) | |
| tree | b9db46d3e9451c0d337a066c8e61da9350551341 /util/nvmutil/lib/io.c | |
| parent | cc7b0a438199a08276f1381d14d5caf0530084c2 (diff) | |
cleanup WIP
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util/nvmutil/lib/io.c')
| -rw-r--r-- | util/nvmutil/lib/io.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/util/nvmutil/lib/io.c b/util/nvmutil/lib/io.c index e95be73c..94bde87e 100644 --- a/util/nvmutil/lib/io.c +++ b/util/nvmutil/lib/io.c @@ -473,7 +473,8 @@ gbe_mv(void) /* create replacement temp in target directory */ - dest_tmp = new_tmpfile(&dest_fd); + if (new_tmpfile(&dest_fd, &f->fname) < 1) + goto ret_gbe_mv; if (dest_tmp == NULL) goto ret_gbe_mv; |
