[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


Hi,

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
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


More information about the ccache mailing list