more inn logging problems

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



It seems that nobody actually used innreport for nntpcache :) Here's a patch
that makes nntpcache's inn logging to behave more sanely.
-- 
Debian GNU/Linux 1.3 is out! ( http://www.debian.org/ )
Email:  Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
--
Index: nntpcache.c
===================================================================
RCS file: /home/greathan/herbert/src/CVS/debian/nntpcache/src/nntpcache.c,v
retrieving revision 1.2
retrieving revision 1.4
diff -u -r1.2 -r1.4
--- nntpcache.c	1998/05/06 07:54:54	1.2
+++ nntpcache.c	1998/05/21 00:17:01	1.4
@@ -335,7 +335,7 @@
 			
 		        if (CurrentGroupArtRead && CurrentGroupScfg && CurrentGroupScfg->group)
 			    {
-				loginn (("%s group %s  %d", ClientHostNormal, 
+				loginn (("%s group %s %d", ClientHostNormal, 
 				      CurrentGroupScfg->group, CurrentGroupArtRead));
 			    }
 			loginn (("%s exit articles %d groups %d", ClientHostNormal, 
@@ -1000,7 +1000,7 @@
 	{
 	    emitf ("%d access denied <%s>, you do not have connect permissions in the %s file.\r\n", NNTP_ACCESS_VAL, ClientHost, con->accessFile);
 	    log (("refused connect from %s (%s)", ClientHost, ClientHostAddr));
-	    loginn (("%s no_access %s", ClientHostNormal, ClientHost));
+	    loginn (("%s no_access", ClientHostNormal));
 	    return FALSE;
 	}
     if (Stats->clients_active > con->maxReaders)
@@ -1012,6 +1012,7 @@
     if (con->contentFilters)
 	    setenv ("CLIENTHOST", ClientHost, 1);
     log (("%s connect from %s (%s)", ClientHostNormal, ClientHostRFC931, ClientHostAddr));
+    loginn (("%s connect", ClientHostNormal));
     settaskinfo("%s: starting", ClientHost);
     if (f_cleanSlate && UpdateDaemonPid)
 	{


[Index of Archives]     [Yosemite]     [Yosemite Campsites]     [Bugtraq]     [Linux]     [Trn]

Powered by Linux