]> git.ipfire.org Git - thirdparty/ccache.git/commit
fix: Clean up temporary dir if it's left the default
authorJoel Rosdahl <joel@rosdahl.net>
Sat, 18 Jun 2022 17:55:02 +0000 (19:55 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Sat, 18 Jun 2022 18:08:16 +0000 (20:08 +0200)
commitce6b0c3dbdf1f84ab625d4c86770297f93b87032
tree088273e974677a96fc9c7d0b054ec0a9d7df3f60
parenta18ba74162a250346fcd7ab994ca6230cc670bf5
fix: Clean up temporary dir if it's left the default

Cleanup of the temporary directory is done if it is $CCACHE_DIR/tmp,
which used to be the default until [1] where the default was changed to
/run/user/$UID/ccache-tmp. Improve this so that cleanup happens if the
temporary directory is equal to the default regardless of the default.

[1]: 213d9883a0c3944749f8512eeb784d8572ad8d91
src/Config.cpp
src/Config.hpp
src/storage/primary/PrimaryStorage.cpp