Merge pull request #2526 from okoetter/feature/issue#2469

Fix restore for UNC backups
This commit is contained in:
Kenneth Skovhede
2017-06-07 09:48:25 +02:00
committed by GitHub
@@ -171,7 +171,7 @@ namespace Duplicati.Library.Main.Database
var oldlen = maxpath.Length;
var lix = maxpath.LastIndexOf(dirsep, maxpath.Length - 2, StringComparison.Ordinal);
maxpath = maxpath.Substring(0, lix + 1);
if (string.IsNullOrWhiteSpace(maxpath) || maxpath.Length == oldlen)
if (string.IsNullOrWhiteSpace(maxpath) || maxpath.Length == oldlen || maxpath == "\\\\")
maxpath = "";
}
}