Duplicate entries when iterating using getgrent()

Jens Rehsack rehsack at googlemail.com
Thu Jul 15 11:02:41 UTC 2010


Hi all,

I'm currently working on a Perl5 module named DBD::Sys and detected
an issue on my FreeBSD test box. When iterating over the users/groups
using getpwent/getgrent, I get duplicated entries for some groups.
But this are not (only) duplicated entries which occur in both
(/etc/group, yp) data sources (like wheel), that are groups like
sshd, proxy etc., too.

The groups which are affected are all groups with gid < 100 and
nobody (65534) and nogroup(65533).

Any suggestions?

Thanks,
Jens


More information about the freebsd-questions mailing list