opennhrp: Enable parallel build
[openwrt/svn-archive/archive.git] / mail / imapfilter / patches / 010-pathnames.patch
1 --- a/pathnames.h
2 +++ b/pathnames.h
3 @@ -3,7 +3,7 @@
4
5
6 /* Program's home directory. */
7 -#define PATHNAME_HOME ".imapfilter"
8 +#define PATHNAME_HOME "/etc/imapfilter"
9
10 /* Program's configuration file. */
11 #define PATHNAME_CONFIG PATHNAME_HOME "/config.lua"
12 @@ -39,7 +39,7 @@
13 #define PATHNAME_CERTS PATHNAME_HOME "/certificates"
14
15 /* Debug temporary file template. */
16 -#define PATHNAME_DEBUG PATHNAME_HOME "/debug.XXXXXX"
17 +#define PATHNAME_DEBUG "/tmp/imapfilterdebug.XXXXXX"
18
19
20 #endif /* PATHNAMES_H */
21 --- a/imapfilter.c
22 +++ b/imapfilter.c
23 @@ -50,7 +50,7 @@
24 opts.config = NULL;
25 opts.oneline = NULL;
26
27 - env.home = getenv("HOME");
28 + env.home = "";
29 env.pathmax = -1;
30
31 while ((c = getopt(argc, argv, "Vc:de:il:v?")) != -1) {