Commit 1846ed70 authored by Andrew Price's avatar Andrew Price

Restore perms after failing to download remote mwrc files

parent 45233543
Pipeline #682 passed with stage
in 9 minutes
......@@ -62,6 +62,7 @@ static FILE *OpenInitFile(const char *base, const char *filename)
file = tmpfile();
if (file == NULL) {
fprintf(stderr, "Error opening temporary file\n");
return NULL;
cl = curl_easy_init();
......@@ -73,6 +74,7 @@ static FILE *OpenInitFile(const char *base, const char *filename)
if (curl_easy_perform(cl)) {
fprintf(stderr, "Error loading %s: %s\n", filename, cerr);
return NULL;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment