INN commit: branches/2.5/nnrpd (group.c)

INN Commit rra at isc.org
Fri Jan 22 23:33:44 UTC 2010


    Date: Friday, January 22, 2010 @ 15:33:44
  Author: iulius
Revision: 8922

When a newsgroup is empty, use 0 for the current article number
(instead of the last known low water mark).

Modified:
  branches/2.5/nnrpd/group.c

---------+
 group.c |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

Modified: group.c
===================================================================
--- group.c	2010-01-22 23:33:08 UTC (rev 8921)
+++ group.c	2010-01-22 23:33:44 UTC (rev 8922)
@@ -159,7 +159,7 @@
                   ARThigh, group);
 	}
 	GRPcount++;
-	ARTnumber = ARTlow;
+	ARTnumber = (count == 0 ? 0 : ARTlow);
 	if (GRPcur) {
 	    if (strcmp(GRPcur, group) != 0) {
 		OVctl(OVCACHEFREE, &boolval);
@@ -214,7 +214,7 @@
             Printf(".\r\n");
         }
         GRPcount++;
-        ARTnumber = ARTlow;
+        ARTnumber = (count == 0 ? 0 : ARTlow);
         if (GRPcur) {
             if (strcmp(GRPcur, group) != 0) {
                 OVctl(OVCACHEFREE, &boolval);
@@ -261,6 +261,7 @@
     /* Parse the arguments. */
     if (ac == 1) {
 	if (GRPcount == 0) {
+            /* Keep the legacy response code 481 instead of 412. */
 	    Reply("%d No group specified\r\n", NNTP_FAIL_XGTITLE);
 	    return;
 	}




More information about the inn-committers mailing list