summaryrefslogtreecommitdiffstats
path: root/lib/MDK/Common
diff options
context:
space:
mode:
Diffstat (limited to 'lib/MDK/Common')
-rw-r--r--lib/MDK/Common/System.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/MDK/Common/System.pm b/lib/MDK/Common/System.pm
index b856e70..08ea8df 100644
--- a/lib/MDK/Common/System.pm
+++ b/lib/MDK/Common/System.pm
@@ -279,7 +279,7 @@ sub list_passwd() {
@l;
}
sub list_home() {
- map { $_->[7] } grep { $_->[2] >= 500 } list_passwd();
+ uniq(map { $_->[7] } grep { $_->[2] >= 500 } list_passwd());
}
sub list_skels {
my ($prefix, $suffix) = @_;
@@ -287,7 +287,7 @@ sub list_skels {
}
sub list_users() {
- map { 500 <= $_->[2] && $_->[0] ne "nobody" ? $_->[0] : () } list_passwd();
+ uniq(map { 500 <= $_->[2] && $_->[0] ne "nobody" ? $_->[0] : () } list_passwd());
}