diff options
author | Julian Blake Kongslie <jblake@omgwallhack.org> | 2010-06-29 23:00:52 -0700 |
---|---|---|
committer | Julian Blake Kongslie <jblake@omgwallhack.org> | 2010-06-29 23:00:52 -0700 |
commit | c3d48a537993e4d5c1197634ea3b42d1a28a8795 (patch) | |
tree | f221b655b3181e017199c792ee6e28a42597cce7 /usr | |
parent | 47ca9ac0b62c7027d30f7fc996f5ceb7aceb8963 (diff) | |
download | piny-code-c3d48a537993e4d5c1197634ea3b42d1a28a8795.tar.gz piny-code-c3d48a537993e4d5c1197634ea3b42d1a28a8795.zip |
Only *attempt* to create user objects when enumerating users.
Diffstat (limited to 'usr')
-rw-r--r-- | usr/src/libpiny/lib/Piny/User.pm | 4 |
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( ); |