INN commit: trunk/nnrpd (article.c)
INN Commit
Russ_Allbery at isc.org
Sun Aug 31 15:05:31 UTC 2008
Date: Sunday, August 31, 2008 @ 08:05:31
Author: iulius
Revision: 7994
Remove the final dot for NEXT/LAST answers.
Answer 501 (and not 420) when the syntax of the article number is wrong.
Modified:
trunk/nnrpd/article.c
-----------+
article.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
Modified: article.c
===================================================================
--- article.c 2008-08-31 14:53:13 UTC (rev 7993)
+++ article.c 2008-08-31 15:05:31 UTC (rev 7994)
@@ -665,7 +665,7 @@
}
else {
if (strspn(av[1], "0123456789") != strlen(av[1])) {
- Reply("%s\r\n", ARTnoartingroup);
+ Reply("%d Syntax error in article number\r\n", NNTP_ERR_SYNTAX);
return;
}
strlcpy(buff, av[1], sizeof(buff));
@@ -731,7 +731,7 @@
do {
ARTnumber += delta;
if (ARTnumber < ARTlow || ARTnumber > ARThigh) {
- Reply("%d No %s article to retrieve.\r\n", errcode, message);
+ Reply("%d No %s article to retrieve\r\n", errcode, message);
ARTnumber = save;
return;
}
@@ -741,7 +741,7 @@
} while (msgid == NULL);
ARTclose();
- Reply("%d %d %s Article retrieved; request text separately.\r\n",
+ Reply("%d %d %s Article retrieved; request text separately\r\n",
NNTP_OK_STAT, ARTnumber, msgid);
}
More information about the inn-committers
mailing list