]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Use tmp_unlink to remove temporary file in use_relative_paths_in_depfile
authorJoel Rosdahl <joel@rosdahl.net>
Tue, 10 Mar 2020 18:51:39 +0000 (19:51 +0100)
committerJoel Rosdahl <joel@rosdahl.net>
Tue, 10 Mar 2020 20:05:01 +0000 (21:05 +0100)
No need to remove via another temporary file.

(cherry picked from commit c74b625aaa46db85797a691c81f129834c7fd82e)

src/ccache.cpp

index 81779811832aa11c5531ec16071b6123fa968c3a..97c57a9659f59cfbf216154d15ef084460a8e22a 100644 (file)
@@ -953,7 +953,7 @@ out:
   }
   if (!result) {
     cc_log("Removing temporary dependency file: %s", tmp_file);
-    x_unlink(tmp_file);
+    tmp_unlink(tmp_file);
   }
   free(tmp_file);
 }