]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - ikiwiki-mass-rebuild
ikiwiki-mass-rebuild: under $! before setting $) to avoid strange errno issue
[git.ikiwiki.info.git] / ikiwiki-mass-rebuild
index 710db4eacffc22baa6e68f7dcf6a9a230b1d8907..0057beb4f1735f957045adb9ccb1f2893a89bbdc 100755 (executable)
@@ -34,9 +34,10 @@ sub processline {
        if (! $pid) {
                my ($uuid, $ugid) = (getpwnam($user))[2, 3];
                my $grouplist=join(" ", $ugid, $ugid, supplemental_groups($user));
+               undef $!;
                $)=$grouplist;
                if ($!) {
-                       die "failed to set egid $grouplist";
+                       die "failed to set egid $grouplist: $!";
                }
                $(=$ugid;
                $<=$uuid;