[Mono-bugs] [Bug 554587] System.AppDomain.CurrentDomain.BaseDirectory does not contains ending separator

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Jul 13 03:23:35 EDT 2011


https://bugzilla.novell.com/show_bug.cgi?id=554587

https://bugzilla.novell.com/show_bug.cgi?id=554587#c1


ch cooli <ch3cooli at yahoo.com.hk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ch3cooli at yahoo.com.hk

--- Comment #1 from ch cooli <ch3cooli at yahoo.com.hk> 2011-07-13 07:23:34 UTC ---
mono/mcs/class/corlib/System/AppDomain.cs

public string BaseDirectory {
    get {
        string path = SetupInformationNoCopy.ApplicationBase;
        if (SecurityManager.SecurityEnabled && (path != null) && (path.Length >
0)) {
        // we cannot divulge local file informations
        new FileIOPermission (FileIOPermissionAccess.PathDiscovery,
path).Demand ();
        }
if (path.EndsWith(Path.DirectorySeparatorChar))
                return path;
return path + Path.DirectorySeparatorChar;
            }
        }

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list