From 3c0c4460acbba3191c9fa4a98e1bd68babd7d04d Mon Sep 17 00:00:00 2001 From: Quasic Date: Sun, 11 Feb 2018 16:19:12 -0500 Subject: [PATCH] alpine: use termux tmp dir for locks (#2127) --- packages/alpine/env_unix.c.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 packages/alpine/env_unix.c.patch diff --git a/packages/alpine/env_unix.c.patch b/packages/alpine/env_unix.c.patch new file mode 100644 index 000000000..f00117aa5 --- /dev/null +++ b/packages/alpine/env_unix.c.patch @@ -0,0 +1,13 @@ +diff --git a/imap/src/osdep/unix/env_unix.c b/imap/src/osdep/unix/env_unix.c +index 89e5092..f5a734e 100644 +--- a/imap/src/osdep/unix/env_unix.c ++++ b/imap/src/osdep/unix/env_unix.c +@@ -123,7 +123,7 @@ static char *lockpgm = LOCKPGM; + * systems. + */ + +-static const char *tmpdir = "/tmp"; ++static const char *tmpdir = "@TERMUX_PREFIX@/tmp"; + + /* Do not change shlock_mode. Doing so can cause mailbox corruption and + * denial of service. It also defeats the entire purpose of the shared