Commit | Line | Data |
---|---|---|
64ce3120 LP |
1 | diff -uNr hunspell-1.6.1/src/tools/hunspell.cxx hunspell-1.6.1.mod/src/tools/hunspell.cxx |
2 | --- hunspell-1.6.1/src/tools/hunspell.cxx 2017-09-14 13:34:22.032862927 +0300 | |
3 | +++ hunspell-1.6.1.mod/src/tools/hunspell.cxx 2017-09-14 13:35:48.482862865 +0300 | |
4 | @@ -660,7 +660,7 @@ | |
5 | ||
6 | const char* extension = (filename) ? basename(filename, '.') : NULL; | |
7 | TextParser* parser = get_parser(format, extension, pMS[0]); | |
8 | - char tmpdirtemplate[] = "/tmp/hunspellXXXXXX"; | |
9 | + char tmpdirtemplate[] = "@TERMUX_PREFIX@/tmp/hunspellXXXXXX"; | |
10 | ||
11 | bool bZippedOdf = is_zipped_odf(parser, extension); | |
12 | // access content.xml of ODF | |
13 | @@ -1567,7 +1567,7 @@ | |
14 | ||
15 | const char* extension = basename(filename, '.'); | |
16 | TextParser* parser = get_parser(format, extension, pMS[0]); | |
17 | - char tmpdirtemplate[] = "/tmp/hunspellXXXXXX"; | |
18 | + char tmpdirtemplate[] = "@TERMUX_PREFIX@/tmp/hunspellXXXXXX"; | |
19 | ||
20 | bool bZippedOdf = is_zipped_odf(parser, extension); | |
21 | // access content.xml of ODF | |
22 | diff -uNr hunspell-1.6.1/src/tools/hzip.cxx hunspell-1.6.1.mod/src/tools/hzip.cxx | |
23 | --- hunspell-1.6.1/src/tools/hzip.cxx 2017-03-25 23:20:45.000000000 +0200 | |
24 | +++ hunspell-1.6.1.mod/src/tools/hzip.cxx 2017-09-14 13:36:09.462862850 +0300 | |
25 | @@ -343,7 +343,7 @@ | |
26 | if (!f) | |
27 | return fail("hzip: %s: Permission denied\n", filename); | |
28 | ||
29 | - char tmpfiletemplate[] = "/tmp/hunspellXXXXXX"; | |
30 | + char tmpfiletemplate[] = "@TERMUX_PREFIX@/tmp/hunspellXXXXXX"; | |
31 | mode_t mask = umask(S_IXUSR | S_IRWXG | S_IRWXO); | |
32 | int tempfileno = mkstemp(tmpfiletemplate); | |
33 | umask(mask); |