Return proper UNC prefix for server paths (\\server\share\). This fixes #2167, but restore view needs fixing (NullReferenceException in SearchFiles()).

This commit is contained in:
Christian Schuerer-Waldheim
2016-12-13 18:29:36 +01:00
parent f27da9cdb1
commit 58a4150dd6
@@ -40,7 +40,10 @@ namespace Duplicati.Library.Snapshots
public static string PrefixWithUNC(string path)
{
if (!path.StartsWith(UNCPREFIX))
return UNCPREFIX + path;
if (!path.StartsWith(@"\\"))
return UNCPREFIX + path;
else
return @"\\?\UNC" + path.Remove(0,1);
else
return path;
}