summaryrefslogtreecommitdiff
path: root/ikiwiki-mass-rebuild
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-06-04 00:38:43 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-06-04 00:38:43 -0400
commit46f7dcb362da5d043c758453384a447f0360462c (patch)
treed9321bdc9cba5cb97be932dbd1924572e796c5da /ikiwiki-mass-rebuild
parentce826411b20f94a6ff95b87574b355f897547840 (diff)
parent20ac7c1bf5b2c4e56792be9fb81f1ac1352f962e (diff)
Merge branch 'master' into xapian
Diffstat (limited to 'ikiwiki-mass-rebuild')
-rwxr-xr-xikiwiki-mass-rebuild4
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;