Article View: news.software.nntp
Article #54041Re: Diablo 3.2 Addspam/delspam no longer work? [Workaround Patch]
From: Frank Durda IV
Date: Wed, 29 Aug 2001 03:13
Date: Wed, 29 Aug 2001 03:13
54 lines
3439 bytes
3439 bytes
[also sent to the diablo bugs mailing list - but that list looks pretty dead
with less than ten entries for August]
As reported earlier, addspam/delspam no longer work in Diablo 3.2 when
compared against 1.24 (I was calling it 2.4 - it was really 1.24).
I have determined that the problem lies with an optimzation added to
wildcmp.c since 1.24. This additional code skips comparisons if the "s" char
pointer points to a NULL. Apparently this optimization doesn't obviously
hurt addgroup/rmgroup operations. This is possibly because addgroup/delgroup
are usually affiliated with a specific feed, but addspam/delspam entries in
GLOBAL aren't. The calling code is somewhat less than unclear...
The correct solution would probably be to wade back into the recusrive
botch code that FeedQuerySpam calls and make sure that this case can't get
tripped when it should not. Of course, I am assuming that this optimization
that I am commenting-out has a benefit in at least one situation...
For now, the original addspam/delspam functionality can be restored with
this patch:
-----------------------------------------------------------------------------
*** wildcmp.c.STOCK Tue May 8 04:01:17 2001
--- wildcmp.c Tue Aug 28 21:43:21 2001
***************
*** 28,35 ****
--- 28,37 ----
for (;;) {
switch(*w) {
case '*':
+ #ifdef BREAK_ADDSPAM_DELSPAM_DIABLO_3.2
if (*s == 0)
return(-1);
+ #endif /*BREAK_ADDSPAM_DELSPAM_DIABLO_3.2*/
if (w[1] == 0) /* optimize wild* case */
return(0);
{
-----------------------------------------------------------------------------
As usual, don't forget to erase everything and rebuild everything. (Sigh.)
(Insert obligatory insulting comment on the continuing presence of xmake.)
The other issues noted in the mailing list submission remain issues.
Frank Durda IV - only this address works:|"Like the HitchHikers Guide to the
<uhclem.sep01%nemesis.lonestar.org> | Galaxy, when the Internet is
| inaccurate, at least it can be said
This Anti-spam address expires Sep. 30th | to be definitively inaccurate."
Copr. 2001, ask before reprinting.
Technical Details
Message-ID:
<095F47F0AAB844A3.751B7C2399EC87B2.25F4942B0F76B074@lp.airnews.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!feed.textport.net!sn-xit-04!supernews.com!cabal10.airnews.net!news.airnews.net!cabal1.airnews.net!news-f.iadfw.net!nemesis.lonestar.org!uhclem.sep01References:
<273A8BA8D109167B.7DDF04D1E0A2F791.D7AB4B50DC6151A4@lp.airnews.net>Show Full Headers
Complete Article Headers
Message-ID: <095F47F0AAB844A3.751B7C2399EC87B2.25F4942B0F76B074@lp.airnews.net> Subject: Re: Diablo 3.2 Addspam/delspam no longer work? [Workaround Patch] Date: Wed, 29 Aug 2001 03:13:45 +0000 From: uhclem.sep01@nemesis.lonestar.org (Frank Durda IV) References: <273A8BA8D109167B.7DDF04D1E0A2F791.D7AB4B50DC6151A4@lp.airnews.net> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!feed.textport.net!sn-xit-04!supernews.com!cabal10.airnews.net!news.airnews.net!cabal1.airnews.net!news-f.iadfw.net!nemesis.lonestar.org!uhclem.sep01 Newsgroups: news.software.nntp Organization: The Big Blue Box Lines: 53 X-Orig-Message-ID: <9mhml9$ogn@library1.airnews.net> Abuse-Reports-To: abuse at airmail.net to report improper postings NNTP-Proxy-Relay: library1-aux.airnews.net NNTP-Posting-Time: Tue Aug 28 22:13:45 2001 NNTP-Posting-Host: !b)rr0d)aF(#p)1 (Encoded at Airnews!) X-Newsreader: TIN [version 1.2 PL2]