Update of /cvsroot/srvx/services/src
In directory usw-pr-cvs1:/tmp/cvs-serv7412/src
Modified Files:
opserv.c
Log Message:
Fixed a bug that could cause srvx to core when gtrace ungline was used.
gtrace ungline now removes all matching glines by default.
Index: opserv.c
===================================================================
RCS file: /cvsroot/srvx/services/src/opserv.c,v
retrieving revision 1.246
retrieving revision 1.247
diff -C2 -r1.246 -r1.247
*** opserv.c 12 Jul 2002 16:52:18 -0000 1.246
--- opserv.c 12 Jul 2002 17:05:55 -0000 1.247
***************
*** 4225,4229 ****
{
struct gline_extra *xtra = extra;
! string_list_append(xtra->glines, gline->target);
}
--- 4225,4229 ----
{
struct gline_extra *xtra = extra;
! string_list_append(xtra->glines, strdup(gline->target));
}
***************
*** 4254,4258 ****
if (action == gtrace_print_func) {
opserv_notice(user, MSG_SEARCH_RESULTS, "glines");
! } else if (action == gtrace_count_func) {
discrim->limit = INT_MAX;
}
--- 4254,4258 ----
if (action == gtrace_print_func) {
opserv_notice(user, MSG_SEARCH_RESULTS, "glines");
! } else if (action == gtrace_count_func || action == gtrace_ungline_func) {
discrim->limit = INT_MAX;
}
|