summaryrefslogtreecommitdiff
path: root/libmysqld
diff options
context:
space:
mode:
authorSergei Golubchik <sergii@pisem.net>2013-08-17 17:20:09 +0400
committerSergei Golubchik <sergii@pisem.net>2013-08-17 17:20:09 +0400
commitc06eaf21b78093524e1a39c55415d4eab3d2cd78 (patch)
tree0b0e1ed3d8c1e877f2e66651cf999b5af5e64975 /libmysqld
parent758b012ff23597faa099a2f9562a54f1bae2cca6 (diff)
downloadmariadb-git-c06eaf21b78093524e1a39c55415d4eab3d2cd78.tar.gz
MDEV-4165 [PATCH] RFE: make tmpdir a build-time configurable option
support -DTMPDIR=/path in CMakeLists.txt Patch by Honza Horak.
Diffstat (limited to 'libmysqld')
-rw-r--r--libmysqld/lib_sql.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmysqld/lib_sql.cc b/libmysqld/lib_sql.cc
index e73fe4b8b77..88f8f039ce2 100644
--- a/libmysqld/lib_sql.cc
+++ b/libmysqld/lib_sql.cc
@@ -559,7 +559,7 @@ int init_embedded_server(int argc, char **argv, char **groups)
opt_mysql_tmpdir=getenv("TMP");
#endif
if (!opt_mysql_tmpdir || !opt_mysql_tmpdir[0])
- opt_mysql_tmpdir=(char*) P_tmpdir; /* purecov: inspected */
+ opt_mysql_tmpdir=(char*) DEFAULT_TMPDIR; /* purecov: inspected */
init_ssl();
umask(((~my_umask) & 0666));