diff options
Diffstat (limited to 'usr/src/libpiny/lib/Piny/User.pm')
-rw-r--r-- | usr/src/libpiny/lib/Piny/User.pm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr/src/libpiny/lib/Piny/User.pm b/usr/src/libpiny/lib/Piny/User.pm index f9a5f0d..14e2ca1 100644 --- a/usr/src/libpiny/lib/Piny/User.pm +++ b/usr/src/libpiny/lib/Piny/User.pm @@ -92,14 +92,16 @@ sub has_group { sub all_users { my ( $class ) = @_; - endpwent( ); - my @ret; + endpwent( ); + while ( my @info = getpwent( ) ) { push( @ret, $class->new( uid => $info[2] ) ); }; + endpwent( ); + return @ret; }; |