aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2010-09-26 22:27:46 -0400
committerJoey Hess <joey@kitenet.net>2010-09-26 22:27:46 -0400
commit1883e31de2044eba87035c7bbb4b34c45fefa432 (patch)
tree4043151941a3ad85b74b84e70c4562cd5460069c /IkiWiki
parent5d201da7188e39787fe08485113300d8e590ba58 (diff)
downloadikiwiki-1883e31de2044eba87035c7bbb4b34c45fefa432.tar
ikiwiki-1883e31de2044eba87035c7bbb4b34c45fefa432.tar.gz
Propigate PATH into wrapper.
In the last version, the ikiwiki script stopped setting PATH. But that leads to gcc failing when run from websetup. See http://www.branchable.com/bugs/Crashes_when_rebuilding_wiki_after_setup_change/
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Wrapper.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/IkiWiki/Wrapper.pm b/IkiWiki/Wrapper.pm
index 927368fae..5eb96f4ae 100644
--- a/IkiWiki/Wrapper.pm
+++ b/IkiWiki/Wrapper.pm
@@ -128,7 +128,7 @@ EOF
#include <sys/file.h>
extern char **environ;
-char *newenviron[$#envsave+6];
+char *newenviron[$#envsave+7];
int i=0;
void addenv(char *var, char *val) {
@@ -147,6 +147,7 @@ $check_commit_hook
@wrapper_hooks
$envsave
newenviron[i++]="HOME=$ENV{HOME}";
+ newenviron[i++]="PATH=$ENV{PATH}";
newenviron[i++]="WRAPPED_OPTIONS=$configstring";
#ifdef __TINYC__