]> git.ipfire.org Git - thirdparty/ccache.git/commit
fix: Unlink destination before opening in util::write_file
authorJoel Rosdahl <joel@rosdahl.net>
Mon, 5 Sep 2022 18:22:00 +0000 (20:22 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Tue, 6 Sep 2022 07:12:38 +0000 (09:12 +0200)
commit944def0ada5a31ed7d3f5e1e8f9c1baaa253bb23
treecb1e0a5f31754dd1a6481ff08173fc5be9f8ac44
parent63938c5661ecf559bc6e8e02b71162dff00ef7a9
fix: Unlink destination before opening in util::write_file

This allows for writing to a file that already exists with read-only
permissions.
src/util/file.cpp
src/util/file.hpp
unittest/test_Stat.cpp