mingw: support UNC alternates

Just like we support having alternates pointing to different drives, we
want to support alternates pointing to network shares, i.e. UNC paths.

Technically, what we do in this patch is not to support UNC alternates,
but to support UNC paths when normalizing paths. But the latter implies
the former, and the former really was the motivation for this patch.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This commit is contained in:
Johannes Schindelin
2015-08-31 12:57:45 +00:00
parent 83610ba057
commit c7947caeab
3 changed files with 10 additions and 1 deletions

2
path.c
View File

@@ -681,7 +681,7 @@ int normalize_path_copy_len(char *dst, const char *src, int *prefix_len)
{
char *dst0;
if (has_dos_drive_prefix(src)) {
if (has_unc_prefix(src) || has_dos_drive_prefix(src)) {
*dst++ = *src++;
*dst++ = *src++;
}