* 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

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