From 58a4150dd6b3eb71a358b4e73e2aac4e36b0cc5a Mon Sep 17 00:00:00 2001 From: Christian Schuerer-Waldheim Date: Tue, 13 Dec 2016 18:28:40 +0100 Subject: [PATCH] Return proper UNC prefix for server paths (\\server\share\). This fixes #2167, but restore view needs fixing (NullReferenceException in SearchFiles()). --- Duplicati/Library/Snapshots/SystemIOWindows.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Duplicati/Library/Snapshots/SystemIOWindows.cs b/Duplicati/Library/Snapshots/SystemIOWindows.cs index c4b3cc44c..675c9f48b 100644 --- a/Duplicati/Library/Snapshots/SystemIOWindows.cs +++ b/Duplicati/Library/Snapshots/SystemIOWindows.cs @@ -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; }