man: fix path to '/tmp' in mandocdb.c
This commit is contained in:
parent
13b0bc51b2
commit
4540d6c066
@ -1,6 +1,7 @@
|
||||
TERMUX_PKG_HOMEPAGE=http://mdocml.bsd.lv/
|
||||
TERMUX_PKG_DESCRIPTION="Man page viewer from the mandoc toolset"
|
||||
TERMUX_PKG_VERSION=1.14.3
|
||||
TERMUX_PKG_REVISION=1
|
||||
TERMUX_PKG_SHA256=0b0c8f67958c1569ead4b690680c337984b879dfd2ad4648d96924332fd99528
|
||||
TERMUX_PKG_SRCURL=http://mdocml.bsd.lv/snapshots/mandoc-${TERMUX_PKG_VERSION}.tar.gz
|
||||
TERMUX_PKG_DEPENDS="less,libandroid-glob"
|
||||
|
12
packages/man/mandocdb.c.patch
Normal file
12
packages/man/mandocdb.c.patch
Normal file
@ -0,0 +1,12 @@
|
||||
diff -uNr mandoc-1.14.3/mandocdb.c mandoc-1.14.3.mod/mandocdb.c
|
||||
--- mandoc-1.14.3/mandocdb.c 2017-08-05 15:40:22.000000000 +0300
|
||||
+++ mandoc-1.14.3.mod/mandocdb.c 2017-09-14 14:33:07.342860405 +0300
|
||||
@@ -2154,7 +2154,7 @@
|
||||
* file, but let's at least check whether the data changed.
|
||||
*/
|
||||
|
||||
- (void)strlcpy(tfn, "/tmp/mandocdb.XXXXXXXX", sizeof(tfn));
|
||||
+ (void)strlcpy(tfn, "@TERMUX_PREFIX@/tmp/mandocdb.XXXXXXXX", sizeof(tfn));
|
||||
if (mkdtemp(tfn) == NULL) {
|
||||
exitcode = (int)MANDOCLEVEL_SYSERR;
|
||||
say("", "&%s", tfn);
|
Loading…
Reference in New Issue
Block a user