]> sourceware.org Git - newlib-cygwin.git/commitdiff
* path.cc: Revert patch from 2003-01-09 to normalize a windows path
authorCorinna Vinschen <corinna@vinschen.de>
Fri, 10 Jan 2003 20:25:47 +0000 (20:25 +0000)
committerCorinna Vinschen <corinna@vinschen.de>
Fri, 10 Jan 2003 20:25:47 +0000 (20:25 +0000)
rather than converting to posix.

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

index 01338e106d6db82c4749c1108d2c9840910802e4..2404a08bafb0cbd9fcf65b3cee62f6dc9e4589ab 100644 (file)
@@ -1,3 +1,8 @@
+2003-01-10  Corinna Vinschen <corinna@vinschen.de>
+
+       * path.cc: Revert patch from 2003-01-09 to normalize a windows path
+       rather than converting to posix.
+
 2003-01-10  Corinna Vinschen <corinna@vinschen.de>
 
        * autoload.cc (gethostname): Make call optional, return 1 if function
index f88b03df91a508cea16889b0bf7f0f1336a25676..61d446b210b35983b23ba4dc35049084a820a4dd 100644 (file)
@@ -205,7 +205,10 @@ normalize_posix_path (const char *src, char *dst)
   syscall_printf ("src %s", src);
 
   if (isdrive (src) || strpbrk (src, "\\:"))
-    return normalize_win32_path (src, dst);
+    {
+      cygwin_conv_to_full_posix_path (src, dst);
+      return 0;
+    }
 
   if (!isslash (src[0]))
     {
@@ -1704,7 +1707,7 @@ mount_info::conv_to_posix_path (const char *src_path, char *posix_path,
 
       if (!*p || !p[1])
        nextchar = 0;
-      else if (*p == '/')
+      else if (isdirsep (*p))
        nextchar = -1;
       else
        nextchar = 1;
@@ -1755,8 +1758,7 @@ mount_info::conv_to_posix_path (const char *src_path, char *posix_path,
     {
       /* The use of src_path and not pathbuf here is intentional.
         We couldn't translate the path, so just ensure no \'s are present. */
-      strcpy (posix_path, src_path);
-      // slashify (src_path, posix_path, trailing_slash_p);
+      slashify (src_path, posix_path, trailing_slash_p);
     }
 
 out:
This page took 0.035729 seconds and 5 git commands to generate.