Skip to content
This repository was archived by the owner on Aug 7, 2025. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/swupd_lib/curl.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
#include <curl/curl.h>
#include <errno.h>
#include <fcntl.h>
#include <libgen.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Expand Down Expand Up @@ -378,6 +379,7 @@ static size_t swupd_download_file_to_memory(void *ptr, size_t size, size_t nmemb

CURLcode swupd_download_file_create(struct curl_file *file)
{
mkdir_p(dirname(strdupa(file->path)));
file->fh = fopen(file->path, "w");
if (!file->fh) {
error("Curl - Cannot open file '%s' for writing - '%s'\n",
Expand Down
Loading