From ca92e7831abe1ef26b7680c66f8ba06ddc68f076 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Sun, 22 Mar 2026 21:08:18 +0000 Subject: cleanup WIP Signed-off-by: Leah Rowe --- util/nvmutil/lib/io.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'util/nvmutil/lib/io.c') 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; -- cgit v1.2.1