[Mono-bugs] [Bug 476952] New: UnixGroupInfo bad behavior

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Feb 18 07:36:05 EST 2009


           Summary: UnixGroupInfo bad behavior
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.0.x
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Mono.POSIX
        AssignedTo: miguel at novell.com
        ReportedBy: dpenalba at codicesoftware.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---

Description of Problem:

The UnixGroupInfo.GetMembers() method throws a exception if a  group in the
“/etc/groups” file has a non-referenced user in the “/etc/passwd” file, so any
member is retrieved for this group.  I have changed the functionality in order
to retrieve all valid users and ignore the others.

Steps to reproduce the problem:
1. Edit the /etc/groups file and add a non existing user.
2. Use the UnixGroupInfo.GetMembers() method for this group.

Actual Results:
A exception is trown and any member is loaded for that group.

Expected Results:
The group is loaded without the corrupted user.

How often does this happen? 

Additional Information:
Attached is a patch file with the proposed change.

Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

More information about the mono-bugs mailing list