]> git.ipfire.org Git - thirdparty/curl.git/commit
cookies: make saving atomic with a rename
authorDaniel Stenberg <daniel@haxx.se>
Fri, 14 Feb 2020 13:36:50 +0000 (14:36 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 17 Feb 2020 21:45:42 +0000 (22:45 +0100)
commitb834890a3fa3f525cd8ef4e99554cdb4558d7e1b
tree60b88549238bb713f29c4f95bbff24f5a0bc61d3
parent3ea15be3f3d6c77adc9fe22ad0b0208466d622d1
cookies: make saving atomic with a rename

Saves the file as "[filename].[8 random hex digits].tmp" and renames
away the extension when done.

Co-authored-by: Jay Satiro
Reported-by: Mike Frysinger
Fixes #4914
Closes #4926
lib/cookie.c