2010-04-16 Sebastien Pouliot <sebastien@ximian.com>
authorSebastien Pouliot <sebastien@ximian.com>
Fri, 16 Apr 2010 17:29:07 +0000 (17:29 -0000)
committerSebastien Pouliot <sebastien@ximian.com>
Fri, 16 Apr 2010 17:29:07 +0000 (17:29 -0000)
commite6fd69e444b6e1ae724ce0fd3251f2b3325e5d35
tree89bc018bc2412cb94dd75d01e63625a716ee763e
parent59c8fb2aee1d183fe5a77fed0bcbd372ef5e15dc
2010-04-16  Sebastien Pouliot  <sebastien@ximian.com>

* Directory.cs: Ensure elevated trust when calling on
Moonlight.
* DirectoryInfo.cs: Ensure elevated trust when calling a .ctor
on Moonlight.
* File.cs: Ensure elevated trust when calling a .ctor on
Moonlight.
* FileInfo.cs: Ensure elevated trust when calling a .ctor on
Moonlight.
* FileStream.cs: Ensure elevated trust when calling a .ctor on
Moonlight. Name property returns "[Unknown]" unless a Moonlight
application is executed with elevated trust.
* Path.cs: Ensure elevated trust when calling a GetTempPath,
GetTempFileName or GetFullPath on Moonlight. Add a shared
internal method to validate paths to reduce code duplication.

svn path=/trunk/mcs/; revision=155643
mcs/class/corlib/System.IO/ChangeLog
mcs/class/corlib/System.IO/Directory.cs
mcs/class/corlib/System.IO/DirectoryInfo.cs
mcs/class/corlib/System.IO/File.cs
mcs/class/corlib/System.IO/FileInfo.cs
mcs/class/corlib/System.IO/FileStream.cs
mcs/class/corlib/System.IO/Path.cs