diff options
author | Daniel Stenberg <daniel@haxx.se> | 2021-05-06 16:42:04 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2021-05-06 16:42:09 +0200 |
commit | 1f831123757f092ef1aef6317a1f7d7e5604cc09 (patch) | |
tree | a04828297d9c2a4745d550aaa0740cb75a662f8d /lib/url.c | |
parent | 577f19397c3545da7b0162677e2783d188e74ae1 (diff) | |
download | curl-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |