"option greylist-off" broken

Spike Ilacqua spike@indra.com
Sat May 1 20:30:18 UTC 2004


I dug deeper and found some missing "!"s.  Here's a patch:

*** dcclib/parse_whitefile.c.org	Sat May  1 14:11:32 2004
--- dcclib/parse_whitefile.c	Sat May  1 14:12:12 2004
***************
*** 187,193 ****
  				continue;
  			}
  			fp = &wf->info->hdr.flags;
! 			if (CSTRCMP(p, "log-")) {
  				p += STRZ("log-");
  				if (!strcasecmp(p, "all")) {
  					*fp |= DCC_WHITE_FG_LOG_ALL;
--- 187,193 ----
  				continue;
  			}
  			fp = &wf->info->hdr.flags;
! 			if (!CSTRCMP(p, "log-")) {
  				p += STRZ("log-");
  				if (!strcasecmp(p, "all")) {
  					*fp |= DCC_WHITE_FG_LOG_ALL;
***************
*** 198,204 ****
  					continue;
  				}
  			}
! 			if (CSTRCMP(p, "greylist-")) {
  				p += STRZ("greylist-");
  				if (!strcasecmp(p, "on")) {
  					*fp |= DCC_WHITE_FG_GREY_ON;
--- 198,204 ----
  					continue;
  				}
  			}
! 			if (!CSTRCMP(p, "greylist-")) {
  				p += STRZ("greylist-");
  				if (!strcasecmp(p, "on")) {
  					*fp |= DCC_WHITE_FG_GREY_ON;



More information about the DCC mailing list

Contact vjs@rhyolite.com by mail or use the form.