From cee3ddb401579ff062ac349103fcfcb33cb247e9 Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 30 Oct 2003 01:20:38 +0200 Subject: [PATCH] Safety fix for adding service name to search config groups --- sql/mysqld.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sql/mysqld.cc b/sql/mysqld.cc index cdcf13ca7bf..e5ddbfe7a33 100644 --- a/sql/mysqld.cc +++ b/sql/mysqld.cc @@ -2644,7 +2644,8 @@ int main(int argc, char **argv) opt_argc= 2; // Skip service-name opt_argv=argv; start_mode= 1; - load_default_groups[3]= argv[2]; + if (my_strcasecmp(argv[2],"mysql")) + load_default_groups[3]= argv[2]; Service.Init(argv[2], mysql_service); return 0; }