[ccache] Path rewriting in ccache make_relative_path - realpath conversion and its necessity

Joel Rosdahl joel at rosdahl.net
Sat Feb 6 16:18:51 UTC 2016


On 12 January 2016 at 10:35, vkr <venkatakrishnarao.ks at gmail.com> wrote:

> I was wondering why it was necessary to use the realpath while rewriting
> the path to relative, instead of the given path as-is? i.e When the check
> for `x_realpath' on a given path passes, why not just use the given path to
> rewrite it to relative?

I don't remember the details, but passing the canonicalized path to
was part of a bug fix related to CCACHE_BASEDIR. See this mail thread:

-- Joel

More information about the ccache mailing list