dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/IO FileStream.cs, 1.16


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/IO FileStream.cs, 1.16, 1.17
Date: Tue, 19 Aug 2003 01:51:17 -0400

Update of /cvsroot/dotgnu-pnet/pnetlib/runtime/System/IO
In directory subversions:/tmp/cvs-serv9684/runtime/System/IO

Modified Files:
        FileStream.cs 
Log Message:


Remove the platform security manager classes because they don't
do anything and they will be superceded by the CAS mechanisms.


Index: FileStream.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/runtime/System/IO/FileStream.cs,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -r1.16 -r1.17
*** FileStream.cs       19 Aug 2003 05:06:31 -0000      1.16
--- FileStream.cs       19 Aug 2003 05:51:15 -0000      1.17
***************
*** 116,125 ****
                                                ("share", _("IO_FileShare"));
                                }
-                               
if(!Platform.Security.SecurityManager.CanOpenFile
-                                               (path, mode, access, share))
-                               {
-                                       throw new SecurityException
-                                               (_("IO_PathnameSecurity"));
-                               }
  
                                // Attempt to open the file.
--- 116,119 ----
***************
*** 196,203 ****
                                        throw new ArgumentOutOfRangeException
                                                ("access", _("IO_FileAccess"));
-                               }
-                               
if(!Platform.Security.SecurityManager.CanUseFileHandle(handle))
-                               {
-                                       throw new 
SecurityException(_("IO_HandleSecurity"));
                                }
                                if(!FileMethods.CheckHandleAccess(handle, 
access))
--- 190,193 ----





reply via email to

[Prev in Thread] Current Thread [Next in Thread]