cronie: keep LD_PRELOAD and TZ variables

This commit is contained in:
Leonid Pliushch 2020-07-11 01:01:06 +03:00
parent cb50933035
commit f24fd9098c
2 changed files with 6 additions and 3 deletions

View File

@ -2,7 +2,7 @@ TERMUX_PKG_HOMEPAGE=https://github.com/cronie-crond/cronie/
TERMUX_PKG_DESCRIPTION="Daemon that runs specified programs at scheduled times and related tools"
TERMUX_PKG_LICENSE="BSD"
TERMUX_PKG_VERSION=1.5.5
TERMUX_PKG_REVISION=4
TERMUX_PKG_REVISION=5
TERMUX_PKG_SRCURL=https://github.com/cronie-crond/cronie/releases/download/cronie-${TERMUX_PKG_VERSION}/cronie-${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=be34c79505e5544323281854744b9955ff16b160ee569f9df7c0dddae5720eac
TERMUX_PKG_DEPENDS="dash"

View File

@ -1,6 +1,7 @@
diff -uNr cronie-1.5.5/src/env.c cronie-1.5.5.mod/src/env.c
--- cronie-1.5.5/src/env.c 2019-04-15 11:41:50.000000000 +0300
+++ cronie-1.5.5.mod/src/env.c 2020-07-10 19:23:38.370596567 +0300
@@ -123,21 +123,18 @@
+++ cronie-1.5.5.mod/src/env.c 2020-07-11 01:00:33.448944127 +0300
@@ -123,21 +123,20 @@
int env_set_from_environ(char ***envpp) {
static const char *names[] = {
"LANG",
@ -28,8 +29,10 @@
+ "BOOTCLASSPATH",
+ "DEX2OATBOOTCLASSPATH",
+ "EXTERNAL_STORAGE",
+ "LD_PRELOAD",
+ "PREFIX",
+ "TMPDIR",
+ "TZ",
NULL
};
const char **name;