From c13baf70ec937501389ed6e9f94c98635f1c1b76 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 6 Mar 2002 22:06:18 +0200 Subject: [PATCH] Fix for --enable-local-infile Docs/manual.texi: Changelog acinclude.m4: Cleanup --help output libmysql/libmysql.c: Fix for reading option groups in client --- Docs/manual.texi | 2 ++ acinclude.m4 | 10 +++++----- configure.in | 13 ++++++++++--- libmysql/libmysql.c | 2 +- 4 files changed, 18 insertions(+), 9 deletions(-) diff --git a/Docs/manual.texi b/Docs/manual.texi index 48b5be95b41..9e8c63f88f5 100644 --- a/Docs/manual.texi +++ b/Docs/manual.texi @@ -46890,6 +46890,8 @@ not yet 100% confident in this code. @node News-3.23.50, News-3.23.49, News-3.23.x, News-3.23.x @appendixsubsec Changes in release 3.23.50 @itemize @bullet +Fixed core-dump bug when reading client groups from option files using +@code{mysql_options()}. @item Memory leak (16 bytes per every @strong{corrupted} table) closed. @item diff --git a/acinclude.m4 b/acinclude.m4 index 0f8b076ff62..b8d46b25db2 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -643,21 +643,21 @@ dnl --------------------------------------------------------------------------- AC_DEFUN([MYSQL_CHECK_BDB], [ AC_ARG_WITH([berkeley-db], - [\ + [ --with-berkeley-db[=DIR] Use BerkeleyDB located in DIR], [bdb="$withval"], [bdb=no]) AC_ARG_WITH([berkeley-db-includes], - [\ + [ --with-berkeley-db-includes=DIR Find Berkeley DB headers in DIR], [bdb_includes="$withval"], [bdb_includes=default]) AC_ARG_WITH([berkeley-db-libs], - [\ + [ --with-berkeley-db-libs=DIR Find Berkeley DB libraries in DIR], [bdb_libs="$withval"], @@ -905,7 +905,7 @@ dnl --------------------------------------------------------------------------- AC_DEFUN([MYSQL_CHECK_INNODB], [ AC_ARG_WITH([innodb], - [\ + [ --with-innodb Use Innodb], [innodb="$withval"], [innodb=no]) @@ -985,7 +985,7 @@ dnl --------------------------------------------------------------------------- AC_DEFUN([MYSQL_CHECK_GEMINI], [ AC_ARG_WITH([gemini], - [\ + [ --with-gemini[=DIR] Use Gemini DB located in DIR], [gemini="$withval"], [gemini=no]) diff --git a/configure.in b/configure.in index cf971463b69..9473c5d7c34 100644 --- a/configure.in +++ b/configure.in @@ -603,15 +603,22 @@ AC_ARG_WITH(mysqld-user, ) AC_SUBST(MYSQLD_USER) -# compile with strings functions in assembler +# If we should allove LOAD DATA LOCAL +AC_MSG_CHECKING(if we should should enable LOAD DATA LOCAL by default) AC_ARG_ENABLE(local-infile, [ --enable-local-infile If LOAD DATA LOCAL INFILE is enabled by default.], - [ ENABLED_LOCAL_INFILE=$enablewal ], + [ ENABLED_LOCAL_INFILE=$enableval ], [ ENABLED_LOCAL_INFILE=no ] ) -AC_SUBST(ENABLE_LOCAL_INFILE) +if test "$ENABLED_LOCAL_INFILE" = "yes" +then + AC_MSG_RESULT([yes]) + AC_DEFINE([ENABLED_LOCAL_INFILE]) +else + AC_MSG_RESULT([no]) +fi # Use Paul Eggerts macros from GNU tar to check for large file support. MYSQL_SYS_LARGEFILE diff --git a/libmysql/libmysql.c b/libmysql/libmysql.c index 348e3942a63..09a9fc0dd4c 100644 --- a/libmysql/libmysql.c +++ b/libmysql/libmysql.c @@ -712,7 +712,7 @@ static void mysql_read_default_options(struct st_mysql_options *options, *end=0; /* Remove '=' */ } /* Change all '_' in variable name to '-' */ - for (end= *option ; (end= strcend(end,'_')) ; ) + for (end= *option ; *(end= strcend(end,'_')) ; ) *end= '-'; switch (find_type(*option+2,&option_types,2)) { case 1: /* port */