aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2013-02-22 00:10:13 +0000
committerNicolas Vigier <boklm@mageia.org>2013-02-22 00:10:13 +0000
commit39111c3f3bc6da2061b61df7419e8fa4ae81c6d0 (patch)
treec8600aa61e1133df5634058143909efbe8590ae1
parent0c32c5dc4c340621f45e90b28c7b6c7b22947aa0 (diff)
downloadmgapeople-39111c3f3bc6da2061b61df7419e8fa4ae81c6d0.tar
mgapeople-39111c3f3bc6da2061b61df7419e8fa4ae81c6d0.tar.gz
mgapeople-39111c3f3bc6da2061b61df7419e8fa4ae81c6d0.tar.bz2
mgapeople-39111c3f3bc6da2061b61df7419e8fa4ae81c6d0.tar.xz
mgapeople-39111c3f3bc6da2061b61df7419e8fa4ae81c6d0.zip
mkpeople: don't push on array reference
-rwxr-xr-xmkpeople2
1 files changed, 1 insertions, 1 deletions
diff --git a/mkpeople b/mkpeople
index 5f34dc9..f579635 100755
--- a/mkpeople
+++ b/mkpeople
@@ -40,7 +40,7 @@ sub loadgroups {
for my $user (@{$groups{$groupname}->{member}}) {
loaduser($ldap, $user) unless exists $users{$user};
if (exists $users{$user}) {
- push $users{$user}->{groups}, $groupname;
+ push @{$users{$user}->{groups}}, $groupname;
}
}
$res->{$groupname}->{member} =