getpwent bug?

Jens Rehsack rehsack at googlemail.com
Fri Jul 16 08:41:38 UTC 2010


On 07/16/10 08:36, Ashish SHUKLA wrote:
> Jens Rehsack writes:
>> 2010/7/16 Dan Nelson<dnelson at 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


More information about the freebsd-questions mailing list