INN commit: trunk/nnrpd (group.c)
INN Commit
Russ_Allbery at isc.org
Sun Aug 24 11:48:17 UTC 2008
Date: Sunday, August 24, 2008 @ 04:48:16
Author: iulius
Revision: 7964
The lowmark must not be set to 1 if the newsgroup is empty but
previously contained articles.
Modified:
trunk/nnrpd/group.c
---------+
group.c | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
Modified: group.c
===================================================================
--- group.c 2008-08-24 11:25:04 UTC (rev 7963)
+++ group.c 2008-08-24 11:48:16 UTC (rev 7964)
@@ -102,9 +102,11 @@
/* Doing a "group" command? */
if (strcasecmp(av[0], "group") == 0) {
- if (count == 0)
- Reply("%d 0 1 0 %s\r\n", NNTP_OK_GROUP, group);
- else {
+ if (count == 0) {
+ if (ARTlow == 0)
+ ARTlow = 1;
+ Reply("%d 0 %lu %lu %s\r\n", NNTP_OK_GROUP, ARTlow, ARTlow-1, group);
+ } else {
/* if we are an NFS reader, check the last nfsreaderdelay
* articles in the group to see if they arrived in the
* last nfsreaderdelay (default 60) seconds. If they did,
@@ -158,7 +160,9 @@
returns the same data as GROUP does and since we have it all
available it shouldn't hurt to return the same thing. */
if (count == 0) {
- Reply("%d 0 1 0 %s\r\n", NNTP_OK_GROUP, group);
+ if (ARTlow == 0)
+ ARTlow = 1;
+ Reply("%d 0 %lu %lu %s\r\n", NNTP_OK_GROUP, ARTlow, ARTlow-1, group);
Printf(".\r\n");
} else if ((handle = OVopensearch(group, ARTlow, ARThigh)) != NULL) {
Reply("%d %d %lu %lu %s\r\n", NNTP_OK_GROUP, count, ARTlow,
More information about the inn-committers
mailing list