* path.cc (normalize_posix_path): Previous change failed to take root

access into account.
This commit is contained in:
Christopher Faylor 2000-04-20 20:42:14 +00:00
parent bf921462e7
commit db64ab89f0
2 changed files with 7 additions and 2 deletions

View 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>

View 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;