diff options
author | Joey Hess <joey@kodama.kitenet.net> | 2008-06-03 21:38:57 -0400 |
---|---|---|
committer | Joey Hess <joey@kodama.kitenet.net> | 2008-06-03 21:38:57 -0400 |
commit | 20ac7c1bf5b2c4e56792be9fb81f1ac1352f962e (patch) | |
tree | 85b45ecda05db305d97f5257d0e3126491777560 | |
parent | c688863cf171df72b57180df746453e3c584f633 (diff) |
sort list for $) so comparison works
-rwxr-xr-x | ikiwiki-mass-rebuild | 4 |
1 files changed, 2 insertions, 2 deletions
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; |