Date: Fri, 16 Jul 2010 08:41:21 +0000 From: Jens Rehsack <rehsack@googlemail.com> To: Ashish SHUKLA <ashish@freebsd.org> Cc: Dan Nelson <dnelson@allantgroup.com>, freebsd-questions@freebsd.org Subject: Re: getpwent bug? Message-ID: <4C401B31.4000402@netbsd.org> In-Reply-To: <86d3unrfgu.fsf@chateau.d.if> References: <AANLkTin5RGYfu_Xt5HWxKFO8GMTOi3YWQ8dyr95ZDW-Y@mail.gmail.com> <20100715172615.GC5485@dan.emsphone.com> <86tyo0qd19.fsf@chateau.d.if> <20100716043056.GF5485@dan.emsphone.com> <AANLkTilSum3vumQhv4qtOQhCaSHo832Ub3b9bEhP0zSt@mail.gmail.com> <86d3unrfgu.fsf@chateau.d.if>
next in thread | previous in thread | raw e-mail | index | archive | help
On 07/16/10 08:36, Ashish SHUKLA wrote: > Jens Rehsack writes: >> 2010/7/16 Dan Nelson<dnelson@allantgroup.com>: > > [...] > > >>> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4C401B31.4000402>