]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - ikiwiki-mass-rebuild
web commit by http://harningt.myopenid.com/: Added harningt to user list...
[git.ikiwiki.info.git] / ikiwiki-mass-rebuild
index 5b6a90b9087d4ffdc841c1ed9f10143b1cbddc70..1ec90b3c0d34e05dd6092e542523e0bf6d81646a 100755 (executable)
@@ -22,13 +22,15 @@ sub processline {
                my ($uuid, $ugid) = (getpwnam($user))[2, 3];
                $)="$ugid $ugid";
                $(=$ugid;
-               $>=$uuid;
                $<=$uuid;
+               $>=$uuid;
                if ($< != $uuid || $> != $uuid || $( != $ugid || $) ne "$ugid $ugid") {
                        die "failed to drop permissions to $user";
                }
-               %ENV=();
-               $ENV{HOME}=(getpwnam($user))[7];
+               %ENV=(
+                       PATH => $ENV{PATH},
+                       HOME => (getpwnam($user))[7],
+               );
                exec("ikiwiki", "-setup", $setup, @ARGV);
                die "failed to run ikiwiki: $!";
        }