From 14916a82e23c22e1f3d3ebbd90421eb747480e99 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 17 Feb 2020 23:01:48 +0100 Subject: altsvc: make saving the cache an atomic operation ... by writing the file to temp name then rename to the final when done. Assisted-by: Jay Satiro Fixes #4936 Closes #4942 --- tests/unit/unit1654.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/unit') diff --git a/tests/unit/unit1654.c b/tests/unit/unit1654.c index a800d9c3a..d05d0b214 100644 --- a/tests/unit/unit1654.c +++ b/tests/unit/unit1654.c @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 2019, Daniel Stenberg, , et al. + * Copyright (C) 2019 - 2020, Daniel Stenberg, , et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -124,7 +124,7 @@ UNITTEST_START } fail_unless(asi->num == 10, "wrong number of entries"); - Curl_altsvc_save(asi, outname); + Curl_altsvc_save(curl, asi, outname); curl_easy_cleanup(curl); fail: -- cgit v1.2.3