[mw-devel] [Git][milliways/mw][master] Restore perms after failing to download remote mwrc files
Andrew Price
welshbyte at sucs.org
Fri Jan 17 16:25:33 GMT 2020
Andrew Price pushed to branch master at milliways / mw
Commits:
1846ed70 by Andrew Price at 2020-01-17T16:22:49+00:00
Restore perms after failing to download remote mwrc files
- - - - -
1 changed file:
- src/client/init.c
Changes:
=====================================
src/client/init.c
=====================================
@@ -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");
+ perms_restore();
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);
fclose(file);
+ perms_restore();
return NULL;
}
curl_easy_cleanup(cl);
View it on GitLab: https://projects.sucs.org/milliways/mw/commit/1846ed705c31349da08d87efc9ed2ea1e93c9b1d
--
View it on GitLab: https://projects.sucs.org/milliways/mw/commit/1846ed705c31349da08d87efc9ed2ea1e93c9b1d
You're receiving this email because of your account on projects.sucs.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sucs.org/pipermail/mw-devel/attachments/20200117/ac8279b7/attachment.html>
More information about the mw-devel
mailing list