diff --git a/packages/hfsutils/build.sh b/packages/hfsutils/build.sh index c637a16b5..d9a757f94 100644 --- a/packages/hfsutils/build.sh +++ b/packages/hfsutils/build.sh @@ -2,6 +2,7 @@ TERMUX_PKG_HOMEPAGE=https://www.mars.org/home/rob/proj/hfs/ TERMUX_PKG_DESCRIPTION="Tool for manipulating HFS images." TERMUX_PKG_LICENSE="GPL-2.0" TERMUX_PKG_VERSION=3.2.6 +TERMUX_PKG_REVISION=1 TERMUX_PKG_SRCURL=ftp://ftp.mars.org/pub/hfs/hfsutils-${TERMUX_PKG_VERSION}.tar.gz TERMUX_PKG_SHA256=bc9d22d6d252b920ec9cdf18e00b7655a6189b3f34f42e58d5bb152957289840 TERMUX_PKG_DEPENDS="libandroid-support" diff --git a/packages/hfsutils/no-suid.patch b/packages/hfsutils/no-suid.patch new file mode 100644 index 000000000..d3384e841 --- /dev/null +++ b/packages/hfsutils/no-suid.patch @@ -0,0 +1,34 @@ +diff -uNr hfsutils-3.2.6/suid.c hfsutils-3.2.6.mod/suid.c +--- hfsutils-3.2.6/suid.c 1998-04-11 11:27:00.000000000 +0300 ++++ hfsutils-3.2.6.mod/suid.c 2020-08-08 15:48:00.553301290 +0300 +@@ -52,6 +52,10 @@ + */ + void suid_init(void) + { ++#ifdef __ANDROID__ ++ return; ++#endif ++ + uid = getuid(); + gid = getgid(); + +@@ -67,6 +71,9 @@ + */ + void suid_enable(void) + { ++#ifdef __ANDROID__ ++ return; ++#endif + # ifdef HAVE_SETREUID + + setreuid(-1, euid); +@@ -86,6 +93,9 @@ + */ + void suid_disable(void) + { ++#ifdef __ANDROID__ ++ return; ++#endif + # ifdef HAVE_SETREUID + + setreuid(-1, uid);