Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
1 #include <stdio.h>
2 #include "prenv.h"
4 int main(int argc, char* argv[])
5 {
6 if (argc != 2)
7 return 1;
9 const char* value = PR_GetEnv("WRITE_ARGUMENT_FILE");
11 if (!value)
12 return 2;
14 FILE* outfile = fopen(value, "w");
15 if (!outfile)
16 return 3;
18 // We only need to write out the first argument (no newline).
19 fputs(argv[argc -1], outfile);
21 fclose(outfile);
23 return 0;
24 }