From 32d0b8ad8b86e5aab6de1af93c635fc707895737 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Thu, 3 Apr 2008 09:36:54 +0000 Subject: fix previous users list commit --- lib/MDK/Common/System.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/MDK/Common/System.pm b/lib/MDK/Common/System.pm index 08ea8df..b4f43c8 100644 --- a/lib/MDK/Common/System.pm +++ b/lib/MDK/Common/System.pm @@ -188,6 +188,7 @@ L use MDK::Common::Math; use MDK::Common::File; +use MDK::Common::DataStructure; use Exporter; our @ISA = qw(Exporter); @@ -279,7 +280,7 @@ sub list_passwd() { @l; } sub list_home() { - uniq(map { $_->[7] } grep { $_->[2] >= 500 } list_passwd()); + MDK::Common::DataStructure::uniq(map { $_->[7] } grep { $_->[2] >= 500 } list_passwd()); } sub list_skels { my ($prefix, $suffix) = @_; @@ -287,7 +288,7 @@ sub list_skels { } sub list_users() { - uniq(map { 500 <= $_->[2] && $_->[0] ne "nobody" ? $_->[0] : () } list_passwd()); + MDK::Common::DataStructure::uniq(map { 500 <= $_->[2] && $_->[0] ne "nobody" ? $_->[0] : () } list_passwd()); } -- cgit v1.2.1