]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Allow the config file to be a symlink
authorJoel Rosdahl <joel@rosdahl.net>
Wed, 17 Jun 2020 19:45:07 +0000 (21:45 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Wed, 17 Jun 2020 19:45:07 +0000 (21:45 +0200)
Fixes #607.

(cherry picked from commit 46172c8bc24799ae35cf300b0b5ba765bd40896a)

src/Config.cpp

index 286cae50e624dfc002f8c1ec2ae95b37f2b0c265..575dec5673bc49281de738609435f9e7a656981e 100644 (file)
@@ -631,7 +631,7 @@ Config::set_value_in_file(const std::string& path,
   Config dummy_config;
   dummy_config.set_item(key, value, nullopt, false, "");
 
-  AtomicFile output(path, AtomicFile::Mode::text);
+  AtomicFile output(Util::real_path(path), AtomicFile::Mode::text);
   bool found = false;
 
   if (!parse_config_file(path,