]> 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 19:54:06 +0000 (20:54 +0100)
commitd4139232b958f22535c6cc56fbb7d21478c13803
tree6074cf80e8c82c1a3f44d34a2204dbc94640b123
parent9a794689a8ba47e79c96d6c370976448b756973c
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.
src/util.c