nnpd bug

Katsuhiro Kondou Katsuhiro_Kondou at isc.org
Fri Feb 22 11:48:40 UTC 2002


In article <GRXGVH$Ijj2iDocNv7VOxusZIvMXRW2xoaGv7SoPofWCLryjBZ_7Lf4 at tiscali.fr>,
	"souadh at libertysurf.fr" <souadh at libertysurf.fr> wrote;

} it seems not to work for me ,I'm using inn 2.3.2
} Is it a bug ??

I think it should be a bug.

} If not How it is possible to enable listgroup command to 
} get the listing of the current group if the parameter 
} group is not specify 

Try attached which works for me.
-- 
Katsuhiro Kondou

Index: group.c
===================================================================
RCS file: /home/kondou/news/inn/repository/inn/nnrpd/group.c,v
retrieving revision 1.41.2.1
diff -u -r1.41.2.1 group.c
--- nnrpd/group.c	2001/07/24 22:51:18	1.41.2.1
+++ nnrpd/group.c	2002/02/22 11:45:24
@@ -31,8 +31,12 @@
 
     /* Parse arguments. */
     if (ac == 1) {
+	if (GRPcur == NULL) {
 	    Printf("%d No group specified\r\n", NNTP_XGTITLE_BAD);
 	    return;
+	} else {
+	    group = GRPcur;
+	}
     } else {
 	group = av[1];
     }


More information about the inn-workers mailing list