diff options
Diffstat (limited to 'lib/MDK')
-rw-r--r-- | lib/MDK/Common/System.pm | 5 |
1 files 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<MDK::Common> 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()); } |