X-Git-Url: http://www.privoxy.org/gitweb/?a=blobdiff_plain;f=actions.c;h=8f7028bb37a73c432afc35c926cf84030bf88475;hb=04d5a39a32eb340e3f82d66d95013c52aaab928b;hp=d88d9e3c60212bcc7d81107d7a2d17a995ddb611;hpb=e72b401da5537a14b29e945944926373cb251825;p=privoxy.git diff --git a/actions.c b/actions.c index d88d9e3c..8f7028bb 100644 --- a/actions.c +++ b/actions.c @@ -1,4 +1,4 @@ -const char actions_rcs[] = "$Id: actions.c,v 1.57 2009/04/04 18:13:51 fabiankeil Exp $"; +const char actions_rcs[] = "$Id: actions.c,v 1.60 2010/12/26 16:18:52 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/actions.c,v $ @@ -522,7 +522,7 @@ jb_err get_actions(char *line, if ((value == NULL) || (*value == '\0')) { - if (0 != strcmpic(action->name, "block")) + if (0 == strcmpic(action->name, "+block")) { /* * XXX: Temporary backwards compatibility hack. @@ -1102,6 +1102,8 @@ static int load_one_actions_file(struct client_state *csp, int fileid) return 1; /* never get here */ } + log_error(LOG_LEVEL_INFO, "Loading actions file: %s", csp->config->actions_file[fileid]); + while (read_config_line(buf, sizeof(buf), fp, &linenum) != NULL) { if (*buf == '{') @@ -1407,7 +1409,7 @@ static int load_one_actions_file(struct client_state *csp, int fileid) } else if (mode == MODE_ACTIONS) { - /* it's a URL pattern */ + /* it's an URL pattern */ /* allocate a new node */ if ((perm = zalloc(sizeof(*perm))) == NULL)