From 39780d0576813a55890dc83cef02cd456e3a09b6 Mon Sep 17 00:00:00 2001 From: Jackson Harper Date: Thu, 12 Feb 2004 20:22:32 +0000 Subject: [PATCH] * AppDomainSetup.cs: If relative paths are used they should be rooted in the temp directory. svn path=/trunk/mcs/; revision=23040 --- mcs/class/corlib/System/AppDomainSetup.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mcs/class/corlib/System/AppDomainSetup.cs b/mcs/class/corlib/System/AppDomainSetup.cs index 7a4a5508bf7..083c63d374d 100755 --- a/mcs/class/corlib/System/AppDomainSetup.cs +++ b/mcs/class/corlib/System/AppDomainSetup.cs @@ -52,7 +52,11 @@ namespace System { appBase = appBase.Replace ('/', Path.DirectorySeparatorChar); } else if (appBase.IndexOf (':') == -1) { - appBase = Path.GetFullPath (appBase); + if (!Path.IsPathRooted (appBase)) + appBase = Path.Combine (Path.GetTempPath (), + appBase); + else + appBase = Path.GetFullPath (appBase); } return appBase; -- 2.25.1