[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pnet-developers] [patch #3295] Fixed incorrect behaviour of _IL_InfoMet
From: |
Gopal.V |
Subject: |
[Pnet-developers] [patch #3295] Fixed incorrect behaviour of _IL_InfoMethods_GetUserName |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6) Gecko/20040206 Firefox/0.8 |
This mail is an automated notification from the patch tracker
of the project: DotGNU Portable.NET.
/**************************************************************************/
[patch #3295] Latest Modifications:
Changes by:
Gopal.V <address@hidden>
'Date:
Tue 08/31/2004 at 06:31 (Asia/Calcutta)
What | Removed | Added
---------------------------------------------------------------------------
Resolution | None | Applied
Status | Open | Closed
------------------ Additional Follow-up Comments ----------------------------
Patch committed to CVS on 31st August 2004
/**************************************************************************/
[patch #3295] Full Item Snapshot:
URL: <http://savannah.gnu.org/patch/?func=detailitem&item_id=3295>
Project: DotGNU Portable.NET
Submitted by: Carl-Adam Brengesjö
On: Wed 08/18/2004 at 03:14
Category: None
Priority: 2
Resolution: Applied
Privacy: Public
Assigned to: None
Originator Email:
Status: Closed
Summary: Fixed incorrect behaviour of _IL_InfoMethods_GetUserName
Original Submission: This patch fixes the username returned by
_IL_InfoMethods_GetUserName (pnet/engine/lib_info.c). Currently the username
returned is the string returned by the getlogin(3) function, but as this
function returns "a pointer to a string containing the name of the user logged
in on the controlling terminal of the process" and not the name associated with
the effective uid.
This causes a sudo or su (or any other seteuid app) command to have our C# apps
print the user who logged in to the terminal.
test.cs:
-----------------------
using System;
class Class
{
public static void Main()
{
Console.WriteLine(Environment.UserName);
}
}
expected output:
-----------------------
address@hidden dev]$ ilrun test.exe
ptah
address@hidden dev]$ sudo ilrun test.exe
Password:
root
output:
-----------------------
address@hidden dev]$ ilrun test.exe
ptah
address@hidden dev]$ sudo ilrun test.exe
Password:
ptah
I assume you can imagine all the confusion this behaviour can cause :-)
Anyways, here's a patch to engine/lib_info.c and configure.in to now fetch the
euid.
Follow-up Comments
------------------
-------------------------------------------------------
Date: Tue 08/31/2004 at 06:31 By: Gopal.V <t3rmin4t0r>
Patch committed to CVS on 31st August 2004
File Attachments
-------------------
-------------------------------------------------------
Date: Wed 08/18/2004 at 03:14 Name: carladam-040818.patch Size: 3.36KB By:
ptah
http://savannah.gnu.org/patch/download.php?item_id=3295&item_file_id=3577
For detailed info, follow this link:
<http://savannah.gnu.org/patch/?func=detailitem&item_id=3295>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/