Root directory being a junction fools realpath()

Corinna Vinschen corinna-cygwin@cygwin.com
Fri Feb 19 18:24:49 GMT 2021


On Feb 18 14:09, Corinna Vinschen via Cygwin-developers wrote:
> On Feb 18 12:46, David Macek via Cygwin-developers wrote:
> > Thank you for diagnosing.
> > 
> > > > This isn't realpath's fault.  You're circumventing the mount point
> > > > handling
> > 
> > It was not my intention. :)  It's just due to my sharing scripts and
> > configurations between various machines (with varying disk layouts and
> > sizes), I sometimes need to use links to work around things.
> > 
> > [...]
> > 
> > > I just wonder if such a bordercase is worth the extra performance hit
> > > for each Cygwin invocation.
> > 
> > Of course I'd like to see it resolved, but I don't remember any
> > non-cosmetic issue caused by it, *so far*.  Is there an estimate of
> > how big of a slow-down the fix causes?
> 
> No, somebody would have to test this.  Probably it's not that much...

I pushed the patch.  New snapshots are in the works, should only take
a couple of minutes.


Corinna


More information about the Cygwin-developers mailing list