INN commit: trunk/nnrpd (group.c)

INN Commit rra at isc.org
Sun Jan 17 19:45:20 UTC 2010


    Date: Sunday, January 17, 2010 @ 11:45:19
  Author: iulius
Revision: 8904

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

Modified:
  trunk/nnrpd/group.c

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

Modified: group.c
===================================================================
--- group.c	2010-01-17 18:21:56 UTC (rev 8903)
+++ group.c	2010-01-17 19:45:19 UTC (rev 8904)
@@ -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