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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user