Article View: news.software.nntp
Article #57816Re: [inn2.3.2] how could i change the storage mode?
From: Russ Allbery
Date: Mon, 01 Apr 2002 08:20
Date: Mon, 01 Apr 2002 08:20
72 lines
3354 bytes
3354 bytes
Johnson Lau <johnson@siukeung.com> writes:
>> Does:
>>
>> newsgroups: *,@*.*,talk.rumors,secret.test
>>
>> work any better?
> just the same.........i've restart the server after the change
Ah, I see. This area is still rather buggy. It's not processing wildmats
the way that the rest of INN does. I'll work on a fix. This should
hopefully be fixed in the STABLE snapshots by tomorrow.
Here's the patch, if you want to apply it directly:
Index: storage/interface.c
===================================================================
RCS file: /dist1/cvs/isc/inn/inn/storage/interface.c,v
retrieving revision 1.45.2.6
diff -u -r1.45.2.6 interface.c
--- inn-2.3/storage/interface.c 2001/03/26 22:41:43 1.45.2.6
+++ inn-2.3/storage/interface.c 2002/04/01 08:18:48
@@ -650,6 +650,7 @@
const char *p;
int i;
BOOL wanted = FALSE;
+ BOOL poisoned = FALSE;
/* Find the end of the line */
for (p = g+1; (*p != '\n') && (*(p - 1) != '\r'); p++);
@@ -668,19 +669,27 @@
for (i = 0; i < num; i++) {
switch (patterns[i][0]) {
case '!':
- if (!wanted && wildmat(group, &patterns[i][1]))
- break;
+ if (wildmat(group, &patterns[i][1]))
+ wanted = FALSE;
+ break;
case '@':
if (wildmat(group, &patterns[i][1])) {
- DISPOSE(groups);
- return FALSE;
+ wanted = FALSE;
+ poisoned = TRUE;
}
break;
default:
- if (wildmat(group, patterns[i]))
+ if (wildmat(group, patterns[i])) {
wanted = TRUE;
+ poisoned = FALSE;
+ }
+ break;
}
}
+ if (poisoned) {
+ DISPOSE(groups);
+ return FALSE;
+ }
}
DISPOSE(groups);
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID:
<ylk7rrx225.fsf@windlord.stanford.edu>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!news1.google.com!newsfeed.stanford.edu!nntp.stanford.edu!not-for-mailReferences:
<a87sl3$2jnc$1@ijustice.itsc.cuhk.edu.hk> <yl3cygpi3t.fsf@windlord.stanford.edu> <a87v6h$2k0d$1@ijustice.itsc.cuhk.edu.hk> <ylk7rso036.fsf@windlord.stanford.edu> <a88n7n$2s4h$1@ijustice.itsc.cuhk.edu.hk> <ylit7chs6c.fsf@windlord.stanford.edu> <a890r4$30e9$1@ijustice.itsc.cuhk.edu.hk>Show Full Headers
Complete Article Headers
Message-ID: <ylk7rrx225.fsf@windlord.stanford.edu> Subject: Re: [inn2.3.2] how could i change the storage mode? Date: Mon, 01 Apr 2002 00:20:34 -0800 From: Russ Allbery <rra@stanford.edu> References: <a87sl3$2jnc$1@ijustice.itsc.cuhk.edu.hk> <yl3cygpi3t.fsf@windlord.stanford.edu> <a87v6h$2k0d$1@ijustice.itsc.cuhk.edu.hk> <ylk7rso036.fsf@windlord.stanford.edu> <a88n7n$2s4h$1@ijustice.itsc.cuhk.edu.hk> <ylit7chs6c.fsf@windlord.stanford.edu> <a890r4$30e9$1@ijustice.itsc.cuhk.edu.hk> 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!news1.google.com!newsfeed.stanford.edu!nntp.stanford.edu!not-for-mail Newsgroups: news.software.nntp Organization: The Eyrie Lines: 71 NNTP-Posting-Host: windlord.stanford.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.Stanford.EDU 1017649235 25949 171.64.13.23 (1 Apr 2002 08:20:35 GMT) X-Complaints-To: news@news.stanford.edu User-Agent: Gnus/5.090005 (Oort Gnus v0.05) XEmacs/21.4 (Common Lisp, sparc-sun-solaris2.6) Cancel-Lock: sha1:qdYz1Zv9ekViQvtqEpjCG7YhLjY=