]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/miau/files/paths.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / miau / files / paths.patch
1 --- miau/src/miau.h~    2005-02-27 22:10:30.000000000 +1030
2 +++ miau/src/miau.h     2005-02-27 22:11:55.000000000 +1030
3 @@ -22,11 +22,11 @@
4  
5  
6  
7 -#define MIAURC         "miaurc"
8 -#define MIAUDIR                ".miau/"
9 +#define MIAURC         "/etc/miau.conf"
10 +#define MIAUDIR                "miau/"
11  #define LOGDIR         "logs"
12 -#define FILE_PID       "pid"
13 -#define FILE_LOG       "log"
14 +#define FILE_PID       "/var/run/miau.pid"
15 +#define FILE_LOG       "/var/log/miau.log"
16  #define FILE_INBOX     "inbox"
17  
18  #define MIAU_URL       "http://miau.sourceforge.net/"
19 --- miau/src/miau.c.orig        2004-11-08 23:42:14.000000000 +1030
20 +++ miau/src/miau.c     2004-11-08 23:47:44.000000000 +1030
21 @@ -2348,10 +2348,13 @@
22         }
23         
24         else {
25 +#if 0
26                 if (! (s = getenv("HOME"))) {
27                         error(MIAU_ERRNOHOME);
28                         escape();
29                 }
30 +#endif
31 +               s = "/var/spool";
32                 
33                 cfg.home = xmalloc(strlen(s) + strlen(MIAUDIR) + 2);
34                 xstrcpy(cfg.home, s);
35 @@ -2377,7 +2380,7 @@
36                         escape();
37                 }
38         } else {
39 -               if (mkdir(LOGDIR, 0700) == -1) {
40 +               if (mkdir(LOGDIR, 0755) == -1) {
41                         error(MIAU_ERRCREATELOGDIR, LOGDIR);
42                         escape();
43                 }