From: Joey Hess Date: Wed, 4 Jun 2008 01:38:57 +0000 (-0400) Subject: sort list for $) so comparison works X-Git-Tag: 2.49~23^2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=20ac7c1bf5b2c4e56792be9fb81f1ac1352f962e;p=ikiwiki.git sort list for $) so comparison works --- diff --git a/ikiwiki-mass-rebuild b/ikiwiki-mass-rebuild index b40eb0b3b..3d0ca734c 100755 --- a/ikiwiki-mass-rebuild +++ b/ikiwiki-mass-rebuild @@ -33,9 +33,9 @@ sub processline { defined(my $pid = fork) or die "Can’t fork: $!"; if (! $pid) { my ($uuid, $ugid) = (getpwnam($user))[2, 3]; - my $grouplist=join(" ", $ugid, $ugid, supplemental_groups($user)); + my $grouplist=join(" ", $ugid, sort {$a <=> $b} $ugid, supplemental_groups($user)); if (($)=$grouplist) ne $grouplist) { - die "failed to set egid $grouplist: $!"; + die "failed to set egid $grouplist (got back $))"; } $(=$ugid; $<=$uuid;