Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/path.cc')
-rw-r--r--winsup/cygwin/path.cc12
1 files changed, 7 insertions, 5 deletions
diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc
index f1e203047..82c96c7e6 100644
--- a/winsup/cygwin/path.cc
+++ b/winsup/cygwin/path.cc
@@ -828,12 +828,14 @@ is_virtual_symlink:
{
fileattr = sym.fileattr;
path_flags = sym.pflags;
- /* If the OS is caseinsensitive or the FS is caseinsensitive or
- the incoming path was given in DOS notation, don't handle
- path casesensitive. */
- if (cygwin_shared->obcaseinsensitive || fs.caseinsensitive ()
- || is_msdos)
+ /* If the OS is caseinsensitive or the FS is caseinsensitive,
+ don't handle path casesensitive. */
+ if (cygwin_shared->obcaseinsensitive || fs.caseinsensitive ())
path_flags |= PATH_NOPOSIX;
+ /* If the incoming path was given in DOS notation, always treat
+ it as caseinsensitive,noacl path. */
+ else if (is_msdos)
+ path_flags |= PATH_NOPOSIX | PATH_NOACL;
caseinsensitive = (path_flags & PATH_NOPOSIX)
? OBJ_CASE_INSENSITIVE : 0;
}