Article View: news.software.nntp
Article #76424Re: How can you pass options to nnrpd started by innd?
From: Jeffrey M. Vinocur
Date: Thu, 04 Oct 2007 09:25
Date: Thu, 04 Oct 2007 09:25
40 lines
2228 bytes
2228 bytes
In article <fe21p9$g3i$1@aioe.org>, Aioe <estasi@aioe.org> wrote:
>Alexander Bartolich wrote:
>
>> Actually I just want to disable reverse lookup.
>> According to nnrpd(8) option -n should do this.
>
>it's impossible without changing the source code
But, quite simple with changing the source code.
Completely untested, but I believe this change to innd/rc.c would
have the effect you desire:
--- rc.c 2007-09-30 17:34:07.000000000 -0400
+++ rc-flag.c 2007-10-04 05:24:20.000000000 -0400
@@ -393,7 +393,7 @@
void
RChandoff(int fd, HANDOFF h)
{
- const char *argv[6];
+ const char *argv[7];
char buff[SMBUF];
int i;
@@ -418,7 +418,8 @@
case HOnntpd: argv[0] = RCnntpd; break;
}
argv[1] = "-s ";
- i = 2;
+ argv[2] = "-n";
+ i = 3;
if (NNRPReason) {
snprintf(buff, sizeof(buff), "-r%s", NNRPReason);
argv[i++] = buff;
--
Jeffrey M. Vinocur
jeff@litech.org
Technical Details
Message-ID:
<fe2bj0$8ef$1@puck.litech.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!198.186.194.251.MISMATCH!news-out.readnews.com!transit4.readnews.com!128.135.12.170.MISMATCH!news.uchicago.edu!newsfeed.stanford.edu!news.kjsl.com!news.litech.org!not-for-mailReferences:
<fe13e9$qdm$1@news.albasani.net> <fe21p9$g3i$1@aioe.org>Show Full Headers
Complete Article Headers
Message-ID: <fe2bj0$8ef$1@puck.litech.org> Subject: Re: How can you pass options to nnrpd started by innd? Date: Thu, 04 Oct 2007 09:25:52 +0000 From: jeff@litech.org (Jeffrey M. Vinocur) References: <fe13e9$qdm$1@news.albasani.net> <fe21p9$g3i$1@aioe.org> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!198.186.194.251.MISMATCH!news-out.readnews.com!transit4.readnews.com!128.135.12.170.MISMATCH!news.uchicago.edu!newsfeed.stanford.edu!news.kjsl.com!news.litech.org!not-for-mail Newsgroups: news.software.nntp Organization: Litech Systems Design Lines: 40 Sender: jeff@litech.org NNTP-Posting-Host: puck.litech.org X-Trace: puck.litech.org 1191489952 8655 66.218.0.75 (4 Oct 2007 09:25:52 GMT) X-Complaints-To: usenet@litech.org NNTP-Posting-Date: Thu, 4 Oct 2007 09:25:52 +0000 (UTC) X-Newsreader: trn 4.0-test76 (Apr 2, 2001) Originator: jeff@litech.org (Jeffrey M. Vinocur)