]> 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, 20 Aug 2022 11:53:50 +0000 (13:53 +0200)
commit602ca8c8b1971077943e1abe17be4cc7b29b0b5f
tree7445ad0d45658d919cd4db6b119004e9647a94d1
parent45d20e4dea709289b08b3c7f6946af03519c9280
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

(cherry picked from commit ce6b0c3dbdf1f84ab625d4c86770297f93b87032)
src/Config.cpp
src/Config.hpp
src/storage/primary/PrimaryStorage.cpp