]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - ikiwiki-mass-rebuild
ikiwiki-mass-rebuild: Don't trust $! when setting $)
[git.ikiwiki.info.git] / ikiwiki-mass-rebuild
index 710db4eacffc22baa6e68f7dcf6a9a230b1d8907..b40eb0b3b435b95da7d6675904da3e2804684431 100755 (executable)
@@ -34,9 +34,8 @@ sub processline {
        if (! $pid) {
                my ($uuid, $ugid) = (getpwnam($user))[2, 3];
                my $grouplist=join(" ", $ugid, $ugid, supplemental_groups($user));
-               $)=$grouplist;
-               if ($!) {
-                       die "failed to set egid $grouplist";
+               if (($)=$grouplist) ne $grouplist) {
+                       die "failed to set egid $grouplist: $!";
                }
                $(=$ugid;
                $<=$uuid;