From 2b5e5c0a4b950ea99e242a3e481b84e9db143d3c Mon Sep 17 00:00:00 2001 From: fishwaldo <> Date: Tue, 22 Jul 2003 11:50:51 +0000 Subject: [PATCH] we should be using strcmp instead of strcasecmp in the parse funtion, as case does matter! --- ChangeLog | 3 +++ configure | 9 +++++++-- configure.in | 8 +++++++- ircd.c | 6 +++--- 4 files changed, 20 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 9ba0455e..fbfe47c2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,7 @@ NeoStats ChangeLog - Anything we add/remove/fix/change is in here (even our rants) +* NeoStats * Fish * Version 2.5.4 + - Fixed a core with using strcasecmp instead of strcmp in the parse function. + * NeoStats * Fish * Version 2.5.4 Pre2 - Fixed a problem with statserv and the HTML settings - Fixed a problem with statserv and channel member counts (didn't decrease for kicks) diff --git a/configure b/configure index 82a9811e..3c9ead7d 100755 --- a/configure +++ b/configure @@ -1285,9 +1285,9 @@ cat >>confdefs.h <<\_ACEOF #define REV 4 _ACEOF -VERSION=2.5.4 +VERSION=2.5.4-Pre2 -CFLAGS="$CFLAGS -O2" +CFLAGS="$CFLAGS -O2 -g" ac_ext=c ac_cpp='$CPP $CPPFLAGS' @@ -3022,9 +3022,14 @@ cat >>confdefs.h <<\_ACEOF #define HAVE_BACKTRACE 1 _ACEOF +LIBS="-g $LIBS" + fi + + + echo "$as_me:$LINENO: checking for egrep" >&5 echo $ECHO_N "checking for egrep... $ECHO_C" >&6 if test "${ac_cv_prog_egrep+set}" = set; then diff --git a/configure.in b/configure.in index e69edd9e..5fefce24 100644 --- a/configure.in +++ b/configure.in @@ -23,7 +23,13 @@ AC_CHECK_LIB(dl, dlopen) ADNS_C_GETFUNC(socket,socket) ADNS_C_GETFUNC(inet_ntoa,nsl) -AC_CHECK_FUNC(backtrace, AC_DEFINE(HAVE_BACKTRACE, 1, 'backtrace function available')) +AC_CHECK_FUNC(backtrace, +[AC_DEFINE(HAVE_BACKTRACE, 1, 'backtrace function available') +LIBS="-g $LIBS"] +) + + + dnl Checks for header files. AC_HEADER_STDC AC_HEADER_SYS_WAIT diff --git a/ircd.c b/ircd.c index f8e3085a..b856944b 100755 --- a/ircd.c +++ b/ircd.c @@ -22,7 +22,7 @@ ** USA ** ** NeoStats CVS Identification -** $Id: ircd.c,v 1.133 2003/07/15 11:21:45 fishwaldo Exp $ +** $Id: ircd.c,v 1.134 2003/07/22 11:50:51 fishwaldo Exp $ */ #include #include "stats.h" @@ -289,7 +289,7 @@ void parse(char *line) /* First, check if its a privmsg, and if so, handle it in the correct Function */ - if (!strcasecmp("PRIVMSG", cmd) || (!strcasecmp("!", cmd))) { + if (!strcmp("PRIVMSG", cmd) || (!strcmp("!", cmd))) { @@ -384,7 +384,7 @@ void parse(char *line) fn_list = module_ptr->function_list; while (fn_list->cmd_name != NULL) { /* This goes through each Command */ - if (!strcasecmp(fn_list->cmd_name, cmd)) { + if (!strcmp(fn_list->cmd_name, cmd)) { if (fn_list->srvmsg == cmdptr) { nlog(LOG_DEBUG1, LOG_CORE, "Running Module %s for Function %s",