[Mono-bugs] [Bug 653564] Erroneous value returned by Environment.UserName when running as root with su

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Nov 17 00:27:19 EST 2010


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

https://bugzilla.novell.com/show_bug.cgi?id=653564#c4


Gonzalo Paniagua Javier <gonzalo at novell.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
                 CC|                            |gonzalo at novell.com
         AssignedTo|mono-bugs at lists.ximian.com  |gonzalo at novell.com

--- Comment #4 from Gonzalo Paniagua Javier <gonzalo at novell.com> 2010-11-17 05:27:18 UTC ---
The problem is that openSuse keeps the USER environment variable set to your
user name instead of changing it to root.

$ su
# export | grep <yourusername>
..
USER="<yourusername>"
USERNAME="<yourusername>"
..

In ubuntu, you would get:
..
USERNAME="<yourusername>"
..

instead. Mono eglib relies on the USER environment variable.

Fixing...

-- 
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