freebsd-ports/news/nntpcache/files/patch-src-acc.c
Yen-Ming Lee 65952a8739 - fix a bug to handle duplicate spam.filter in nntpcache.access correctly.
(patch sent back to authors. fix it first before next release)
2007-01-17 13:38:12 +00:00

19 lines
448 B
C

--- src/acc.c.orig Sat Feb 19 12:16:21 2000
+++ src/acc.c Tue Sep 13 23:00:32 2005
@@ -147,6 +147,7 @@
if (strEq(fli->name, fi))
{
fc->filter = fli->filter;
+ fc->name = fli->name;
goto cont;
}
}
@@ -195,7 +195,7 @@
loge (("bad filter header/scope %s in file %s: %s", scope, fi, buf));
Exit(1);
}
- *p='\0';
+ /* *p='\0'; */
f->scope = sc_header;
f->scope_header = Sstrdup(scope);
}