From c3d48a537993e4d5c1197634ea3b42d1a28a8795 Mon Sep 17 00:00:00 2001 From: Julian Blake Kongslie Date: Tue, 29 Jun 2010 23:00:52 -0700 Subject: Only *attempt* to create user objects when enumerating users. --- usr/src/libpiny/lib/Piny/User.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'usr') diff --git a/usr/src/libpiny/lib/Piny/User.pm b/usr/src/libpiny/lib/Piny/User.pm index b2e85f5..f13d03c 100644 --- a/usr/src/libpiny/lib/Piny/User.pm +++ b/usr/src/libpiny/lib/Piny/User.pm @@ -97,7 +97,9 @@ sub all_users { endpwent( ); while ( my @info = getpwent( ) ) { - push( @ret, $class->new( uid => $info[2] ) ); + eval { + push( @ret, $class->new( uid => $info[2] ) ); + }; }; endpwent( ); -- cgit v1.2.3