projects
/
ikiwiki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
515f3ef
)
export CALLER_UID
author
Joey Hess
<joey@kodama.kitenet.net>
Fri, 24 Oct 2008 19:46:29 +0000
(15:46 -0400)
committer
Joey Hess
<joey@kodama.kitenet.net>
Fri, 24 Oct 2008 19:46:29 +0000
(15:46 -0400)
IkiWiki/Wrapper.pm
patch
|
blob
|
history
diff --git
a/IkiWiki/Wrapper.pm
b/IkiWiki/Wrapper.pm
index 187314d165ff86e07e318f5861b4461d78da70cd..eb6228dc314dd2b24d6740f34e08c8f73e437512 100644
(file)
--- 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;