[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Groupexpire doesn't work on globs

There is a bug in the code for texpire.  It doesn't accept the expiry
time if the groupname is a glob.

I traced the bug to the lookup_expire() routine.  The parameters to
ngmatch() are reversed.  As a result it treats the newsgroup name as
the pattern, instead of the real pattern given by the groupexpire

Here's a patch that fixes it:

--- texpire.c.orig	Sat Feb 13 13:18:33 1999
+++ texpire.c	Fri Feb 19 22:59:48 1999
@@ -77,7 +77,7 @@
     a = expire_base;
     while (a != NULL) {
-	if (ngmatch(group, a->group) == 0)
+	if (ngmatch(a->group, group) == 0)
 	    return a->xtime;
         a = a->next;

Walt Mankowski

leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx -- mailing list for leafnode
To unsubscribe, send mail with "unsubscribe" in the subject to the list