[Mono-dev] Error in UnixGroupInfo

pablosantosluac pablosantosluac at terra.es
Wed Jun 20 05:30:41 EDT 2007


I have found an issue with Mono.Unix.UnixGroupInfo.GetMembers().

This method is meant to return the UnixUserInfo for the members of the given
unix group. The issue arises when a system has an unexistent username
defined in the group file.

This is rather frequent, especially in a NIS environment (lazy admins).
Normal unix behavior is to ignore the user and continue.
UnixGroupInfo.GetMembers() raises an 'invalid username' exception, and there
is no way to retrieve the rest of the users in the group.

Is it right to absorb the exception in this method and continue resolving
other users?


More information about the Mono-devel-list mailing list