file: update to 5.42

This commit is contained in:
Lucy Phipps 2022-07-22 17:20:43 +01:00
parent 0754641ea4
commit e19d4a38a4
No known key found for this signature in database
GPG Key ID: 8F688A3DB7869BFE
2 changed files with 15 additions and 16 deletions

View File

@ -2,10 +2,9 @@ TERMUX_PKG_HOMEPAGE=https://darwinsys.com/file/
TERMUX_PKG_DESCRIPTION="Command-line tool that tells you in words what kind of data a file contains"
TERMUX_PKG_LICENSE="BSD 2-Clause"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=5.41
TERMUX_PKG_REVISION=1
TERMUX_PKG_VERSION=5.42
TERMUX_PKG_SRCURL=ftp://ftp.astron.com/pub/file/file-${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=13e532c7b364f7d57e23dfeea3147103150cb90593a57af86c10e4f6e411603f
TERMUX_PKG_SHA256=c076fb4d029c74073f15c43361ef572cfb868407d347190ba834af3b1639b0e4
TERMUX_PKG_DEPENDS="zlib"
TERMUX_PKG_BREAKS="file-dev"
TERMUX_PKG_REPLACES="file-dev"

View File

@ -1,19 +1,19 @@
diff -uNr file-5.35/src/compress.c file-5.35.mod/src/compress.c
--- file-5.35/src/compress.c 2018-10-15 19:29:16.000000000 +0300
+++ file-5.35.mod/src/compress.c 2019-03-02 01:49:14.754069208 +0200
@@ -410,7 +410,7 @@
ssize_t r;
int tfd;
- (void)strlcpy(buf, "/tmp/file.XXXXXX", sizeof buf);
diff -uNr file-5.42/src/compress.c file-5.42.mod/src/compress.c
--- file-5.42/src/compress.c 2022-04-11 19:15:07.000000000 +0100
+++ file-5.42.mod/src/compress.c 2022-07-22 17:17:00.944240000 +0100
@@ -465,7 +465,7 @@
(void)strlcat(buf, "/", sizeof(buf));
(void)strlcat(buf, "file.XXXXXX", sizeof(buf));
#else
- (void)strlcpy(buf, "/tmp/file.XXXXXX", sizeof(buf));
+ (void)strlcpy(buf, "@TERMUX_PREFIX@/tmp/file.XXXXXX", sizeof buf);
#endif
#ifndef HAVE_MKSTEMP
{
char *ptr = mktemp(buf);
diff -uNr file-5.35/src/file.h file-5.35.mod/src/file.h
--- file-5.35/src/file.h 2018-10-15 19:29:16.000000000 +0300
+++ file-5.35.mod/src/file.h 2019-03-02 01:49:41.984157713 +0200
@@ -79,7 +79,7 @@
diff -uNr file-5.42/src/file.h file-5.42.mod/src/file.h
--- file-5.42/src/file.h 2022-05-28 21:24:09.000000000 +0100
+++ file-5.42.mod/src/file.h 2022-07-22 17:16:04.080017000 +0100
@@ -96,7 +96,7 @@
#define ENABLE_CONDITIONALS
#ifndef MAGIC