]> sipb.mit.edu Git - ikiwiki.git/blobdiff - ikiwiki-mass-rebuild
web commit by http://www.larted.org.uk/~dom/: patch
[ikiwiki.git] / ikiwiki-mass-rebuild
index fa8bd913db1844e793062052379248e4612ef2fd..1ec90b3c0d34e05dd6092e542523e0bf6d81646a 100755 (executable)
@@ -27,8 +27,10 @@ sub processline {
                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: $!";
        }