]> sipb.mit.edu Git - ikiwiki.git/blobdiff - ikiwiki-mass-rebuild
web commit by JoshTriplett: pdfshare plugin
[ikiwiki.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;
                my ($uuid, $ugid) = (getpwnam($user))[2, 3];
                $)="$ugid $ugid";
                $(=$ugid;
-               $>=$uuid;
                $<=$uuid;
                $<=$uuid;
+               $>=$uuid;
                if ($< != $uuid || $> != $uuid || $( != $ugid || $) ne "$ugid $ugid") {
                        die "failed to drop permissions to $user";
                }
                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: $!";
        }
                exec("ikiwiki", "-setup", $setup, @ARGV);
                die "failed to run ikiwiki: $!";
        }