Re: Path rewriting in ccache make_relative_path - realpath conversion and its necessity

Joel Rosdahl <[email protected]> Sat, 6 Feb 2016 17:18:51 +0100
Newsgroups gmane.comp.compilers.ccache
Message-ID <CAK8D=phBZnHH+kmjpmmBjcSB319WgBaApBZvc1foDeOtFcwWGQ@mail.gmail.com>
Hi,

On 12 January 2016 at 10:35, vkr <[email protected]> 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
get_relative_path
was part of a bug fix related to CCACHE_BASEDIR. See this mail thread:
http://www.mail-archive.com/ccache%40lists.samba.org/msg00802.html

-- Joel