diff options
author | Joey Hess <joey@kodama.kitenet.net> | 2008-10-24 15:46:29 -0400 |
---|---|---|
committer | Joey Hess <joey@kodama.kitenet.net> | 2008-10-24 15:46:29 -0400 |
commit | 761dee41b1041330f3bae4ec2f2eae1857d29756 (patch) | |
tree | 89381138491857dca4084109b303e8b98dc46a74 /IkiWiki | |
parent | 515f3ef60046312bc170572d9af90518f40d50ca (diff) | |
download | ikiwiki-761dee41b1041330f3bae4ec2f2eae1857d29756.tar ikiwiki-761dee41b1041330f3bae4ec2f2eae1857d29756.tar.gz |
export CALLER_UID
Diffstat (limited to 'IkiWiki')
-rw-r--r-- | IkiWiki/Wrapper.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/IkiWiki/Wrapper.pm b/IkiWiki/Wrapper.pm index 187314d16..eb6228dc3 100644 --- a/IkiWiki/Wrapper.pm +++ b/IkiWiki/Wrapper.pm @@ -55,7 +55,7 @@ EOF #include <string.h> extern char **environ; -char *newenviron[$#envsave+5]; +char *newenviron[$#envsave+6]; int i=0; addenv(char *var, char *val) { @@ -72,6 +72,7 @@ int main (int argc, char **argv) { $envsave newenviron[i++]="HOME=$ENV{HOME}"; newenviron[i++]="WRAPPED_OPTIONS=$configstring"; + asprintf(newenviron[i++], "CALLER_UID=%i", getuid()); newenviron[i]=NULL; environ=newenviron; |