INN commit: trunk (include/nntp.h innd/nc.c)
INN Commit
rra at isc.org
Wed Oct 21 20:06:05 UTC 2009
Date: Wednesday, October 21, 2009 @ 13:06:04
Author: iulius
Revision: 8676
Improve the greeting message and say we are in transit mode
with innd.
Modified:
trunk/include/nntp.h
trunk/innd/nc.c
----------------+
include/nntp.h | 1 -
innd/nc.c | 8 +++++---
2 files changed, 5 insertions(+), 4 deletions(-)
Modified: include/nntp.h
===================================================================
--- include/nntp.h 2009-10-21 18:34:24 UTC (rev 8675)
+++ include/nntp.h 2009-10-21 20:06:04 UTC (rev 8676)
@@ -30,7 +30,6 @@
#define NNTP_HAVEIT_BADID "435 Bad Message-ID"
#define NNTP_LIST_FOLLOWS "215"
#define NNTP_ARTICLE_FOLLOWS "220"
-#define NNTP_POSTOK "200"
#define NNTP_REJECTIT_EMPTY "437 Empty article"
#define NNTP_RESENDIT_LATER "436 Retry later"
#define NNTP_POSTEDOK "240 Article posted"
Modified: innd/nc.c
===================================================================
--- innd/nc.c 2009-10-21 18:34:24 UTC (rev 8675)
+++ innd/nc.c 2009-10-21 20:06:04 UTC (rev 8676)
@@ -1360,13 +1360,15 @@
char *p;
char buff[SMBUF];
- /* Set the greeting message. */
+ /* Set the greeting message. We always send 200 because we cannot know
+ * for sure that the client will not be able to use POST during its
+ * entire session. */
p = innconf->pathhost;
if (p == NULL)
/* Worked in main, now it fails? Curious. */
p = Path.data;
- snprintf(buff, sizeof(buff), "%d %s InterNetNews server %s ready",
- NNTP_OK_BANNER_POST, p, INN_VERSION_STRING);
+ snprintf(buff, sizeof(buff), "%d %s InterNetNews server %s ready (transit mode)",
+ NNTP_OK_BANNER_POST, p, INN_VERSION_STRING);
NCgreeting = xstrdup(buff);
}
More information about the inn-committers
mailing list