Update of /cvsroot/srvx/services/src
In directory usw-pr-cvs1:/tmp/cvs-serv7731/src
Modified Files:
Tag: rel-1_1-branch
opserv.c
Log Message:
Backport gtrace ungline fixes from CVS HEAD (1.2.x).
Index: opserv.c
===================================================================
RCS file: /cvsroot/srvx/services/src/opserv.c,v
retrieving revision 1.235
retrieving revision 1.235.2.1
diff -C2 -r1.235 -r1.235.2.1
*** opserv.c 18 Jun 2002 19:29:23 -0000 1.235
--- opserv.c 12 Jul 2002 17:06:38 -0000 1.235.2.1
***************
*** 3940,3944 ****
{
struct gline_extra *xtra = extra;
! string_list_append(xtra->glines, gline->target);
}
--- 3940,3944 ----
{
struct gline_extra *xtra = extra;
! string_list_append(xtra->glines, strdup(gline->target));
}
***************
*** 3969,3973 ****
if (action == gtrace_print_func) {
opserv_notice(user, MSG_SEARCH_RESULTS, "glines");
! } else if (action == gtrace_count_func) {
discrim->limit = INT_MAX;
}
--- 3969,3973 ----
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;
}
|