diff options
author | Daniel Stenberg <daniel@haxx.se> | 2020-02-17 23:01:48 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2020-02-18 07:49:21 +0100 |
commit | 14916a82e23c22e1f3d3ebbd90421eb747480e99 (patch) | |
tree | 12adec5225ec862e7f330da1539e0d37e3aba105 /tests | |
parent | 330f133224af18c65b9325d9b6502e07b4f09f6b (diff) |
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
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit/unit1654.c | 4 |
1 files changed, 2 insertions, 2 deletions
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, <daniel@haxx.se>, et al. + * Copyright (C) 2019 - 2020, Daniel Stenberg, <daniel@haxx.se>, 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: |