From owner-freebsd-questions@FreeBSD.ORG Fri Jul 16 08:41:38 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 D7BD1106567B; Fri, 16 Jul 2010 08:41:38 +0000 (UTC) (envelope-from rehsack@googlemail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id B948D8FC0C; Fri, 16 Jul 2010 08:41:37 +0000 (UTC) Received: by bwz12 with SMTP id 12so1131211bwz.13 for ; Fri, 16 Jul 2010 01:41:36 -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:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=jRh/JljQQVUGJOdeyLhscgEFnq9oIX/WKfVU4/aFK5k=; b=LSs7PDisAwXtPu//XcM5JS/dh8WxD1+CrDs8PXtbipbI4fkF9IOgJf8R24iP+k776k XwvvRUnfPdNY/4AHdOhyixBPpSB80BHaSWWoNpfpGIoyKuDUR8wAjUok1h0saopZ5B0X GaYlWU1O1I8y8bfaS85X3QmRX2uuhbVyi50Hw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=ZHRB0ht3ZCTmr2rdTImnvV5IStPdQdAOvt+K6TiPlHz2y0+knLykesBstn8MzEersg Y8XCH1jsX5X3NX56b98cfld9XxBlw4ajmxfC5aWt2vfqmYjCvkCXSpvlXFS6bmybUe5Y UttTNsu7m2X5FCMiveev4iyyNkxxfbgqBRYF0= Received: by 10.204.163.84 with SMTP id z20mr620629bkx.184.1279269696035; Fri, 16 Jul 2010 01:41:36 -0700 (PDT) Received: from waldorf.muppets.liwing.de (p4FF86EBD.dip.t-dialin.net [79.248.110.189]) by mx.google.com with ESMTPS id x19sm9966390bkv.9.2010.07.16.01.41.34 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 16 Jul 2010 01:41:35 -0700 (PDT) Message-ID: <4C401B31.4000402@netbsd.org> Date: Fri, 16 Jul 2010 08:41:21 +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: Ashish SHUKLA References: <20100715172615.GC5485@dan.emsphone.com> <86tyo0qd19.fsf@chateau.d.if> <20100716043056.GF5485@dan.emsphone.com> <86d3unrfgu.fsf@chateau.d.if> In-Reply-To: <86d3unrfgu.fsf@chateau.d.if> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: Dan Nelson , freebsd-questions@freebsd.org Subject: Re: getpwent bug? 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: Fri, 16 Jul 2010 08:41:38 -0000 On 07/16/10 08:36, Ashish SHUKLA wrote: > Jens Rehsack writes: >> 2010/7/16 Dan Nelson: > > [...] > > >>> Try the following patch: > > Thanks, I'll try it when I'm on my FreeBSD box. Great \o/ [...] >> I had to develop a workaround for all other boxes anyway. > > As a workaround you can use setpwent(3). I cached the entires - I rate setpwent as to dangerous. You can take a look at http://cpansearch.perl.org/src/REHSACK/DBD-Sys-0.01_01/lib/DBD/Sys/Plugin/Unix/Users.pm Jens