From owner-freebsd-questions@FreeBSD.ORG Thu Jul 15 11:02:41 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2A455106564A for ; Thu, 15 Jul 2010 11:02:41 +0000 (UTC) (envelope-from rehsack@googlemail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id A27E38FC0C for ; Thu, 15 Jul 2010 11:02:40 +0000 (UTC) Received: by fxm13 with SMTP id 13so348715fxm.13 for ; Thu, 15 Jul 2010 04:02:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:content-type :content-transfer-encoding; bh=EeM75PlksVEF/41m+0dthKKJ2dK4MzvCTeFARvOVWPs=; b=Lz7oexEb8+9erZgVvA72zCWvQh9vwC9Bapn67sYyUpr6C+ZHqf8YeOSrYjffWW039d LQL2fjRXZKxmK+AHw/olVjh1gZwgb7CijaTfupFMhhLrQAD8JiQ2/85f5tb8IHY6M8w5 R2rkD1Qy4TUO6Cc+2HiXbxz3QaPbi0R/rnsPo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=WZhzhVxpHP++SA/0yrsZ+WfLalUoJJ8XPke95UQSR6vzb0SxLfEHGXq0GDSCDDJvW5 VAdkYjP4GNVYNIjxKIsEEDMl/bTNPJcaypgl+KF0lSR5VLtTM9jcdh8cUWyg4JZ7Dazg kdwu7MYTJKOpPHVtIErFZRNoArhD/DNDPQ1c8= Received: by 10.223.105.197 with SMTP id u5mr370636fao.14.1279190211980; Thu, 15 Jul 2010 03:36:51 -0700 (PDT) Received: from waldorf.muppets.liwing.de (p4FF87098.dip.t-dialin.net [79.248.112.152]) by mx.google.com with ESMTPS id r8sm266164faq.34.2010.07.15.03.36.51 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 15 Jul 2010 03:36:51 -0700 (PDT) Message-ID: <4C3EE4B6.8010005@netbsd.org> Date: Thu, 15 Jul 2010 10:36:38 +0000 From: Jens Rehsack User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.1.9) Gecko/20100409 Thunderbird/3.0.4 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Thu, 15 Jul 2010 11:44:09 +0000 Subject: Duplicate entries when iterating using getgrent() X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jul 2010 11:02:41 -0000 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