readers.conf vs localhost

Katsuhiro Kondou kondou at nec.co.jp
Wed Jun 7 23:01:55 UTC 2000


In article <Pine.GSO.4.05.10006071513300.15476-100000 at boromir>,
	Mirek Luc <mirek at nask.pl> wrote;

} permission to talk". Ghrrr... And here is what I saw in logs:
} Jun  7 15:27:00 pippin nnrpd[386]: localhost.aqq connect
} Jun  7 15:27:00 pippin nnrpd[386]: localhost.aqq no_permission
}                                              ^^^
} What a surprise! "aqq" is a value of "domain:" parameter in inn.conf.
} I think it is a bit confusing behavior. Is it a bug? Or a feature...?:-)

Attached could help.
-- 
Katsuhiro Kondou

--- nnrpd/nnrpd.c.orig	Sun May 14 13:39:48 2000
+++ nnrpd/nnrpd.c	Thu Jun  8 07:58:10 2000
@@ -363,7 +363,7 @@
 #endif
 
     /* Only needed for misconfigured YP/NIS systems. */
-    if (strchr(hostname, '.') == NULL
+    if (ap->s_addr != INADDR_LOOPBACK && strchr(hostname, '.') == NULL
      && (p = innconf->domain) != NULL) {
 	(void)strcat(hostname, ".");
 	(void)strcat(hostname, p);



More information about the inn-workers mailing list