From: Marcus von Appen Date: Thu, 27 Feb 2014 19:48:26 +0000 (+0100) Subject: - Use the correct absolute path for relative paths within a rooted path X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=commitdiff_plain;h=1870f7036990255d9769499b298ad881571a166c;p=mono.git - Use the correct absolute path for relative paths within a rooted path --- diff --git a/mcs/class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine/DirectoryScanner.cs b/mcs/class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine/DirectoryScanner.cs index 4636d27250b..4e8aa9a340c 100644 --- a/mcs/class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine/DirectoryScanner.cs +++ b/mcs/class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine/DirectoryScanner.cs @@ -98,7 +98,9 @@ namespace Microsoft.Build.BuildEngine { int offset = 0; string full_path; if (Path.IsPathRooted (name)) { - full_path = name; + // The path may start with a root indicator, but at the same time can + // contain relative paths inbetween + full_path = Path.GetFullPath (name); baseDirectory = new DirectoryInfo (Path.GetPathRoot (name)); if (IsRunningOnWindows) // skip the "drive:"