summaryrefslogtreecommitdiff
path: root/lib/url.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2021-05-06 16:42:04 +0200
committerDaniel Stenberg <daniel@haxx.se>2021-05-06 16:42:09 +0200
commit1f831123757f092ef1aef6317a1f7d7e5604cc09 (patch)
treea04828297d9c2a4745d550aaa0740cb75a662f8d /lib/url.c
parent577f19397c3545da7b0162677e2783d188e74ae1 (diff)
downloadcurl-bagder/lock-output-files.tar.gz
lib: when saving files, use advisory locksbagder/lock-output-files
... instead of saving into a temp name and rename. This makes them work properly when the output is a character device. Applies to cookies, alt-svc and hsts files. Makes Curl_rename superfluous and therefore removed. Reported-by: rofl0r on github Assisted-by: Paul Vixie Fixes #6882 Closes #6884
Diffstat (limited to 'lib/url.c')
-rw-r--r--lib/url.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/url.c b/lib/url.c
index 74ebb6f91..fd0869e81 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -416,7 +416,7 @@ CURLcode Curl_close(struct Curl_easy **datap)
Curl_dyn_free(&data->state.headerb);
Curl_safefree(data->state.ulbuf);
Curl_flush_cookies(data, TRUE);
- Curl_altsvc_save(data, data->asi, data->set.str[STRING_ALTSVC]);
+ Curl_altsvc_save(data->asi, data->set.str[STRING_ALTSVC]);
Curl_altsvc_cleanup(&data->asi);
Curl_hsts_save(data, data->hsts, data->set.str[STRING_HSTS]);
Curl_hsts_cleanup(&data->hsts);