summaryrefslogtreecommitdiff
path: root/ikiwiki-mass-rebuild
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2007-10-25 23:12:23 -0400
committerJoey Hess <joey@kodama.kitenet.net>2007-10-25 23:12:23 -0400
commit1e1e1f504609f97cad70d5dca964f8fb3cdfecaa (patch)
tree65768346a1d7f35fb3d39322ac4e58fd68b1aa94 /ikiwiki-mass-rebuild
parent11968615dfad0a9564d66d801aa2921a7613602b (diff)
* ikiwiki-mass-rebuild: Patch from HenrikBrixAndersen to fix order
* ikiwiki-mass-rebuild: Don't clear PATH from the environment.
Diffstat (limited to 'ikiwiki-mass-rebuild')
-rwxr-xr-xikiwiki-mass-rebuild6
1 files changed, 4 insertions, 2 deletions
diff --git a/ikiwiki-mass-rebuild b/ikiwiki-mass-rebuild
index fa8bd913d..1ec90b3c0 100755
--- a/ikiwiki-mass-rebuild
+++ b/ikiwiki-mass-rebuild
@@ -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: $!";
}