]> sourceware.org Git - newlib-cygwin.git/commitdiff
Revert change from 2010-08-31:
authorCorinna Vinschen <corinna@vinschen.de>
Tue, 15 Feb 2011 10:39:36 +0000 (10:39 +0000)
committerCorinna Vinschen <corinna@vinschen.de>
Tue, 15 Feb 2011 10:39:36 +0000 (10:39 +0000)
* path.cc (normalize_posix_path): Drop support for //./ and //?/
prefixes.
(path_conv::check): Ditto.

winsup/cygwin/ChangeLog
winsup/cygwin/path.cc

index c34b9ecb33d99442b8379c6fc35a91ccb07fe7ff..35b1c9debf2619aacbfcdc400e19e700a9ef39ff 100644 (file)
@@ -1,3 +1,10 @@
+2011-02-15  Corinna Vinschen  <corinna@vinschen.de>
+
+       Revert change from 2010-08-31:
+       * path.cc (normalize_posix_path): Drop support for //./ and //?/
+       prefixes.
+       (path_conv::check): Ditto.
+
 2011-02-15  Corinna Vinschen  <corinna@vinschen.de>
 
        * fhandler_disk_file.cc (fhandler_disk_file::readdir_helper): Use POSIX
index a1f36b7cd1353aa34ca16f0c885643e71ab333a5..e1371d308da7603837043e8b80152556f646f21b 100644 (file)
@@ -266,14 +266,6 @@ normalize_posix_path (const char *src, char *dst, char *&tail)
     {
       *tail++ = *src++;
       ++dst_start;
-      /* Is that a //?/ or //./ prefix into the native NT namespace?
-        If so, preserve it. */
-      if ((src[1] == '.' || src[1] == '?') && isslash (src[2]))
-       {
-         *tail++ = *src++;
-         *tail++ = *src++;
-         dst_start += 2;
-       }
     }
 
   while (*src)
@@ -843,13 +835,6 @@ path_conv::check (const char *src, unsigned opt,
              full_path[2] = '\\';
              full_path[3] = '\0';
            }
-         /* Otherwise, if the user requires a directory and explicitely
-            specified a path into the native NT namespace, add the trailing
-            backslash.  It's needed to access the root dir. */
-         else if (need_directory
-                  && full_path[0] == '\\' && full_path[1] == '\\'
-                  && (full_path[2] == '.' || full_path[2] == '?'))
-           strcat (full_path, "\\");
 
          /* If the incoming path was given in DOS notation, always treat
             it as caseinsensitive,noacl path.  This must be set before
This page took 0.038534 seconds and 5 git commands to generate.