summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Blake Kongslie <jblake@omgwallhack.org>2010-06-29 23:00:52 -0700
committerJulian Blake Kongslie <jblake@omgwallhack.org>2010-06-29 23:00:52 -0700
commitc3d48a537993e4d5c1197634ea3b42d1a28a8795 (patch)
treef221b655b3181e017199c792ee6e28a42597cce7
parent47ca9ac0b62c7027d30f7fc996f5ceb7aceb8963 (diff)
downloadpiny-code-c3d48a537993e4d5c1197634ea3b42d1a28a8795.tar.gz
piny-code-c3d48a537993e4d5c1197634ea3b42d1a28a8795.zip
Only *attempt* to create user objects when enumerating users.
-rw-r--r--usr/src/libpiny/lib/Piny/User.pm4
1 files changed, 3 insertions, 1 deletions
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( );