From 1c68ac907edf923e0c15104378eb8e26d62b0b0a Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Thu, 26 Dec 2024 10:40:04 +0900 Subject: [PATCH] Also fix creating temp_file for creating v1 file --- src/archiver.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/archiver.c b/src/archiver.c index c0c9aaf..e0569d0 100644 --- a/src/archiver.c +++ b/src/archiver.c @@ -2725,7 +2725,10 @@ int simple_archiver_write_v1(FILE *out_f, SDArchiverState *state, } if (!temp_fd) { - return SDAS_INTERNAL_ERROR; + temp_fd = tmpfile(); + if (!temp_fd) { + return SDAS_INTERNAL_ERROR; + } } // Handle SIGPIPE. -- 2.49.0