[Mono-bugs] [Bug 74190][Wis] Changed - Console.WriteLine gives UnauthorizedAccessException

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Fri, 8 Apr 2005 18:40:05 -0400 (EDT)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by miguel@ximian.com.

http://bugzilla.ximian.com/show_bug.cgi?id=74190

--- shadow/74190	2005-04-08 18:31:47.000000000 -0400
+++ shadow/74190.tmp.5754	2005-04-08 18:40:05.000000000 -0400
@@ -1,13 +1,13 @@
 Bug#: 74190
 Product: Mono: Tools
 Version: 1.0
 OS: unknown
 OS Details: 
-Status: REOPENED   
-Resolution: 
+Status: RESOLVED   
+Resolution: NOTABUG
 Severity: Unknown
 Priority: Wishlist
 Component: XSP
 AssignedTo: gonzalo@ximian.com                            
 ReportedBy: tauberer@for.net               
 QAContact: mono-bugs@ximian.com
@@ -109,6 +109,19 @@
 With Mono.Posix I was doing the mapping of the constants, with the new
 implementation in Mono.Unix the mapping of the constants is no longer
 there, which lead to this error.
 
 Quick fix: replace `using Mono.Unix' with `using Mono.Posix', am
 fixing this now.
+
+------- Additional Comments From miguel@ximian.com  2005-04-08 18:40 -------
+Hey!
+
+   I realized something: if you pass O_CREATE you must use the other
+call to open, the one where you specify the permissions.  So it was
+not a Mono.Posix/Mono.Unix bug.
+
+REplace the call to open with:
+
+int fd = Syscall.open("/tmp/test",
+OpenFlags.O_RDONLY|OpenFlags.O_CREAT, FilePermissions.DEFFILEMODE);
+