[Mono-bugs] [Bug 56144][Nor] Changed - [PATCH] Environment.UserName must represent the username (not the %USERNAME% variable)

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Thu, 1 Apr 2004 14:58:02 -0500 (EST)


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 sebastien@ximian.com.

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

--- shadow/56144	2004-03-28 23:25:01.000000000 -0500
+++ shadow/56144.tmp.31994	2004-04-01 14:58:02.000000000 -0500
@@ -11,13 +11,13 @@
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: sebastien@ximian.com               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
 URL: 
 Cc: 
-Summary: Environment.UserName must represent the username (not the %USERNAME% variable)
+Summary: [PATCH] Environment.UserName must represent the username (not the %USERNAME% variable)
 
 Description of Problem:
 
 We are trusting the environment variables to get the username and userdomain.
 
 
@@ -122,6 +122,26 @@
 [1] Just added a 
 Console.WriteLine ("Env.UserName: {0}", Environment.UserName);
 after each time WindowsIdentity.GetCurrent().Name was displayed.
 
 [2] Sample can be found at
 http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemsecurityprincipalwindowsidentityclassimpersonatetopic.asp
+
+------- Additional Comments From sebastien@ximian.com  2004-04-01 14:58 -------
+Here's a patch that add runtime support for Environement.UserName. The
+patch was tested under Linux (still can't build the runtime under
+Windows).
+
+New files (newfiles.tar):
+mono/mono/metadata/security.h
+mono/mono/metadata/security.c
+mono/mono/io-layer/security.h
+mono/mono/io-layer/security.c
+
+Patched files (runtime.diff):
+mono/mono/metadata/icall.c
+mono/mono/metadata/Makefile.am
+mono/mono/io-layer/Makefile.am
+
+Patched files (classlib.diff):
+mcs/class/corlib/System/Environment.cs
+