mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-03-05 06:25:48 +08:00
For local paths, add a check if the inner path components contain native symlinks or junctions. Compare the incoming path with the path returned by NtQueryInformationFile(FileNameInformation). If they differ, there must be at least one native symlink or junction in the path. If so, treat the currently evaluated file as non-existant. This forces path_conv::check to backtrack inner path components until we eliminated all native symlinks or junctions and have a normalized path. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. Cygwin documentation is available on the net at https://cygwin.com You might especially be interested in https://cygwin.com/faq/faq.html#faq.programming.building-cygwin