mksh: use /data/local instead of /data/local/tmp

/data/local/tmp is writable by the shell user and is not
sticky (S_IXVTX). /data/local is only writable by root
(as a result, the sticky bit doesn't matter).

Change-Id: I7ea121208846c2cffe97f6316272c526b47a1813
diff --git a/Android.mk b/Android.mk
index 7855926..0d8807e 100644
--- a/Android.mk
+++ b/Android.mk
@@ -36,7 +36,7 @@
 # additional flags first, then from Makefrag.inc: CFLAGS, CPPFLAGS
 LOCAL_CFLAGS:=		-DMKSHRC_PATH=\"/system/etc/mkshrc\" \
 			-DMKSH_DEFAULT_EXECSHELL=\"/system/bin/sh\" \
-			-DMKSH_DEFAULT_TMPDIR=\"/data/local/tmp\" \
+			-DMKSH_DEFAULT_TMPDIR=\"/data/local\" \
 		-fno-asynchronous-unwind-tables -fwrapv \
 		-DDEBUG_LEAKS -DMKSH_ASSUME_UTF8 -DMKSH_CONSERVATIVE_FDS \
 		-DMKSH_DONT_EMIT_IDSTRING -DMKSH_NOPWNAM -DMKSH_BUILDSH \
diff --git a/mkmf.sh b/mkmf.sh
index 84e9845..6e2517c 100644
--- a/mkmf.sh
+++ b/mkmf.sh
@@ -149,7 +149,7 @@
 if test $mkmfmode = 1; then
 	addvar CPPFLAGS '-DMKSHRC_PATH=\"/system/etc/mkshrc\"'
 	addvar CPPFLAGS '-DMKSH_DEFAULT_EXECSHELL=\"/system/bin/sh\"'
-	addvar CPPFLAGS '-DMKSH_DEFAULT_TMPDIR=\"/data/local/tmp\"'
+	addvar CPPFLAGS '-DMKSH_DEFAULT_TMPDIR=\"/data/local\"'
 fi
 
 ### Override flags