From 03bc23366cce9fcf2fd9d0b525f34bd84331fc14 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Thu, 3 Apr 2008 03:13:08 +0000 Subject: workaround glibc misconfiguration that make users listed twice (#34279) --- lib/MDK/Common/System.pm | 4 ++-- 1 file 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()); } -- cgit v1.2.1