]> git.ipfire.org Git - thirdparty/ccache.git/commit
Improve name of tmp file in x_unlink
authorJoel Rosdahl <joel@rosdahl.net>
Sun, 22 Mar 2020 13:41:44 +0000 (14:41 +0100)
committerJoel Rosdahl <joel@rosdahl.net>
Sun, 22 Mar 2020 21:18:09 +0000 (22:18 +0100)
commit76f63d8a148bf1219b21cbb49d3963f6a776380e
treeabdc136c3ff4d5bb5bfe67488a580ed0899c5b21
parent1905d633d3e3eabcc098eafeaff115e3b36223e0
Improve name of tmp file in x_unlink

There is no need to generate a unique temporary name in x_unlink since
we don’t care whether the temporary file is clobbered on NFS. The
previous usage of tmp_string() was not quite correct since the returned
string is supposed to be passed to mkstemp, not used as is.

(cherry picked from commit e7776305184c9338ee97334078153f298f6cfea7)
src/legacy_util.cpp