Patch to allow trailing dots on managed mounts

Pierre A. Humblet pierre@phumblet.no-ip.org
Fri Dec 17 03:49:00 GMT 2004


At 10:27 PM 12/16/2004 -0500, Christopher Faylor wrote:
>On Thu, Dec 16, 2004 at 10:26:27PM -0500, Christopher Faylor wrote:
>>I don't see how it could be correct for the slash checking code not to
>>be "in the loop".  Won't this cause a problem if you've done
>
>Ah, nevermind.  I see that your patch handles that.
>
OK.

The key point in my patch is that it's the output Win32 path
that must be checked, not the input path.
The reason we don't care about the input path is that check()
only makes simple Windows calls. They handle the tails as they
judge best (and that worked OK until NtCreateFile was introduced),
we don't have to do anything special.

We want to fix the output path (only for real disk files
that are  not escaped with //./) so that:
1) NtCreateFile mimics the Windows rules
2) the path hash is invariant to the path tail
3) chdir something/....... is prevented

Pierre



More information about the Cygwin-patches mailing list