INN commit: branches/2.4/nnrpd (commands.c)
INN Commit
Russ_Allbery at isc.org
Sat Sep 6 08:58:33 UTC 2008
Date: Saturday, September 6, 2008 @ 01:58:33
Author: iulius
Revision: 8005
In the backoff code, only return codes for POST were used. It now also returns
the right codes for IHAVE.
Modified:
branches/2.4/nnrpd/commands.c
------------+
commands.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
Modified: commands.c
===================================================================
--- commands.c 2008-09-06 08:49:55 UTC (rev 8004)
+++ commands.c 2008-09-06 08:58:33 UTC (rev 8005)
@@ -476,20 +476,20 @@
* invoke the spaghetti factor).
*/
if ((path = (char *) PostRecFilename(ClientIpString,PERMuser)) == NULL) {
- Reply("%s\r\n", NNTP_CANTPOST);
+ Reply("%s\r\n", ihave ? NNTP_RESENDIT_LATER : NNTP_CANTPOST);
return;
}
if (LockPostRec(path) == 0) {
syslog(L_ERROR, "%s Error write locking '%s'",
ClientHost, path);
- Reply("%s\r\n", NNTP_CANTPOST);
+ Reply("%s\r\n", ihave ? NNTP_RESENDIT_LATER : NNTP_CANTPOST);
return;
}
if (!RateLimit(&sleeptime,path)) {
syslog(L_ERROR, "%s can't check rate limit info", ClientHost);
- Reply("%s\r\n", NNTP_CANTPOST);
+ Reply("%s\r\n", ihave ? NNTP_RESENDIT_LATER : NNTP_CANTPOST);
UnlockPostRec(path);
return;
} else if (sleeptime != 0L) {
More information about the inn-committers
mailing list