This is the mail archive of the
cygwin-patches@cygwin.com
mailing list for the Cygwin project.
Re: Patch to allow trailing dots on managed mounts
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