From 3ec97824b74d0826ef19d984b5b70792471f8986 Mon Sep 17 00:00:00 2001 From: "monty@narttu.mysql.fi" <> Date: Mon, 17 Mar 2003 19:06:14 +0200 Subject: [PATCH] Change dbug.h -> my_dbug.h (Portability fix) Ensure that \ is not allowed in filenames, even on Unix --- include/Makefile.am | 2 +- include/{dbug.h => my_dbug.h} | 0 include/my_global.h | 2 +- libmysql/get_password.c | 1 - libmysqld/lib_vio.c | 1 - sql/table.cc | 2 +- 6 files changed, 3 insertions(+), 5 deletions(-) rename include/{dbug.h => my_dbug.h} (100%) diff --git a/include/Makefile.am b/include/Makefile.am index cb6da7bbb3a..83cf4290d3d 100644 --- a/include/Makefile.am +++ b/include/Makefile.am @@ -16,7 +16,7 @@ # MA 02111-1307, USA BUILT_SOURCES = mysql_version.h m_ctype.h my_config.h -pkginclude_HEADERS = dbug.h m_string.h my_sys.h my_list.h \ +pkginclude_HEADERS = my_dbug.h m_string.h my_sys.h my_list.h \ mysql.h mysql_com.h mysqld_error.h mysql_embed.h \ my_semaphore.h my_pthread.h my_no_pthread.h raid.h \ errmsg.h my_global.h my_net.h my_alloc.h \ diff --git a/include/dbug.h b/include/my_dbug.h similarity index 100% rename from include/dbug.h rename to include/my_dbug.h diff --git a/include/my_global.h b/include/my_global.h index 49ca0e03f89..39b6cada0e3 100644 --- a/include/my_global.h +++ b/include/my_global.h @@ -392,7 +392,7 @@ typedef unsigned short ushort; #define DBUG_OFF #endif -#include +#include #define MIN_ARRAY_SIZE 0 /* Zero or One. Gcc allows zero*/ #define ASCII_BITS_USED 8 /* Bit char used */ diff --git a/libmysql/get_password.c b/libmysql/get_password.c index 53eeb1080ce..e6221ea556e 100644 --- a/libmysql/get_password.c +++ b/libmysql/get_password.c @@ -23,7 +23,6 @@ #include "mysql.h" #include #include -#include #if defined(HAVE_BROKEN_GETPASS) && !defined(HAVE_GETPASSPHRASE) #undef HAVE_GETPASS diff --git a/libmysqld/lib_vio.c b/libmysqld/lib_vio.c index 821923fe667..448c11f9abd 100644 --- a/libmysqld/lib_vio.c +++ b/libmysqld/lib_vio.c @@ -33,7 +33,6 @@ #include #include #include -#include #include #ifndef __WIN__ diff --git a/sql/table.cc b/sql/table.cc index d1e2c86e5ab..a26ab89bd97 100644 --- a/sql/table.cc +++ b/sql/table.cc @@ -1180,7 +1180,7 @@ bool check_table_name(const char *name, uint length) } } #endif - if (*name == '/' || *name == FN_LIBCHAR || *name == FN_EXTCHAR) + if (*name == '/' || *name == '\\' || *name == FN_EXTCHAR) return 1; name++; }