[curl/curl] 1f8311: lib: when saving files, use advisory locks
Daniel Stenberg <[email protected]>
| Newsgroups | gmane.comp.web.curl.cvs |
|---|---|
| Message-ID | <curl/curl/push/refs/heads/bagder/lock-output-files/[email protected]> |
Branch: refs/heads/bagder/lock-output-files
Home: https://github.com/curl/curl
Commit: 1f831123757f092ef1aef6317a1f7d7e5604cc09
https://github.com/curl/curl/commit/1f831123757f092ef1aef6317a1f7d7e5604cc09
Author: Daniel Stenberg <[email protected]>
Date: 2021-05-06 (Thu, 06 May 2021)
Changed paths:
M CMakeLists.txt
M configure.ac
M lib/Makefile.inc
M lib/altsvc.c
M lib/altsvc.h
M lib/cookie.c
M lib/curl_config.h.cmake
M lib/hsts.c
A lib/openlock.c
A lib/openlock.h
R lib/rename.c
R lib/rename.h
M lib/url.c
M tests/unit/unit1654.c
Log Message:
-----------
lib: when saving files, use advisory locks
... 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
_______________________________________________
curl-commits mailing list
[email protected]
https://cool.haxx.se/cgi-bin/mailman/listinfo/curl-commits