OSDN Git Service

* path.cc (normalize_posix_path): Previous change failed to take root
authorcgf <cgf>
Thu, 20 Apr 2000 20:42:14 +0000 (20:42 +0000)
committercgf <cgf>
Thu, 20 Apr 2000 20:42:14 +0000 (20:42 +0000)
access into account.

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

index 1f0b29d..6d0801c 100644 (file)
@@ -1,6 +1,11 @@
+Thu Apr 20 16:39:18 2000  Christopher Faylor <cgf@cygnus.com>
+
+       * path.cc (normalize_posix_path): Previous change failed to take root
+       access into account.
+
 Thu Apr 20 11:26:00 2000  Corinna Vinschen <corinna@vinschen.de>
 
-        * syscalls.cc (_link): Check new link path for trailing dot.
+       * syscalls.cc (_link): Check new link path for trailing dot.
 
 Thu Apr 20 00:32:03 2000  Christopher Faylor <cgf@cygnus.com>
 
index fd4973f..9b9d37e 100644 (file)
@@ -620,7 +620,7 @@ normalize_posix_path (const char *cwd, const char *src, char *dst)
        }
     }
   if (dst > (dst_start + 1) && dst[-1] == '.' && SLASH_P (dst[-2]))
-    dst -= 2;
+    dst -= dst[2] ? 2 : 1;
   *dst = 0;
   debug_printf ("%s = normalize_posix_path (%s)", dst_start, src_start);
   return 0;