--- a/Tools/gdomap.c
+++ b/Tools/gdomap.c
@@ -5320,7 +5320,7 @@
 #ifndef __MINGW__
   if (0 == jail)
     {
-      jail = "/tmp";    /* Not great, but better than nothing */
+      jail = "@TERMUX_PREFIX@/tmp";    /* Not great, but better than nothing */
     }
   if (chdir(jail) < 0)
     {
