INN commit: trunk/nnrpd (commands.c newnews.c)
INN Commit
Russ_Allbery at isc.org
Wed Sep 3 05:41:28 UTC 2008
Date: Tuesday, September 2, 2008 @ 22:41:27
Author: iulius
Revision: 7999
Answer 403 and not 503 when there is an internal problem.
Modified:
trunk/nnrpd/commands.c
trunk/nnrpd/newnews.c
------------+
commands.c | 6 +++---
newnews.c | 4 ++--
2 files changed, 5 insertions(+), 5 deletions(-)
Modified: commands.c
===================================================================
--- commands.c 2008-09-02 18:45:20 UTC (rev 7998)
+++ commands.c 2008-09-03 05:41:27 UTC (rev 7999)
@@ -89,7 +89,7 @@
for (i = 0; (pid = fork()) < 0; i++) {
if (i == innconf->maxforks) {
- Reply("%d Can't fork %s\r\n", NNTP_ERR_UNAVAILABLE,
+ Reply("%d Can't fork %s\r\n", NNTP_FAIL_ACTION,
strerror(errno));
syslog(L_FATAL, "cant fork %s %m", av[0]);
return -1;
@@ -274,7 +274,7 @@
now = time(NULL);
gmt = gmtime(&now);
if (now == (time_t) -1 || gmt == NULL) {
- Reply("%d Can't get time, %s\r\n", NNTP_ERR_UNAVAILABLE, strerror(errno));
+ Reply("%d Can't get time, %s\r\n", NNTP_FAIL_ACTION, strerror(errno));
return;
}
Reply("%d %04.4d%02.2d%02.2d%02.2d%02.2d%02.2d\r\n",
@@ -399,7 +399,7 @@
if ((qp = QIOopen(ACTIVE)) == NULL) {
syslog(L_ERROR, "%s can't fopen %s %m", Client.host, ACTIVE);
- Reply("%d Cannot open active file\r\n", NNTP_ERR_UNAVAILABLE);
+ Reply("%d Cannot open active file\r\n", NNTP_FAIL_ACTION);
return;
}
qsort(grouplist, numgroups, sizeof(GROUPDATA), GroupCompare);
Modified: newnews.c
===================================================================
--- newnews.c 2008-09-02 18:45:20 UTC (rev 7998)
+++ newnews.c 2008-09-03 05:41:27 UTC (rev 7999)
@@ -293,10 +293,10 @@
qp = QIOopen(path);
if (qp == NULL) {
if (errno == ENOENT) {
- Reply("%d Can't open active\r\n", NNTP_ERR_UNAVAILABLE);
+ Reply("%d Can't open active\r\n", NNTP_FAIL_ACTION);
} else {
syswarn("%s can't fopen %s", Client.host, path);
- Reply("%d Can't open active\r\n", NNTP_ERR_UNAVAILABLE);
+ Reply("%d Can't open active\r\n", NNTP_FAIL_ACTION);
}
free(path);
TMRstop(TMR_NEWNEWS);
More information about the inn-committers
mailing list