Article View: news.software.nntp
Article #47811Re: rnews: cant open_remote Illegal seek
From: Russ Allbery
Date: Thu, 10 Aug 2000 00:00
Date: Thu, 10 Aug 2000 00:00
35 lines
1774 bytes
1774 bytes
bill davidsen <davidsen@tmr.com> writes:
> I'm doing a sort of content based feed for a site. All articles in
> some groups are scanned by a small perl program, and if they have
> certain things they are fed to another site. Now, since I have the whole
> article in memory in the program, I tried to do the feed by opening a
> pipe to rnews and pushing in the article:
> open(RNEWS, "|rnews -h localhost -r remote -P 433") || die "rnews";
> print RNEWS $Post;
> close RNEWS;
> I get the "rnews: cant open_remote Illegal seek" error in the log.
Try this patch:
--- rnews.c 2000/03/20 22:32:58 1.24
+++ rnews.c 2000/08/10 17:25:37
@@ -767,7 +767,7 @@
return FALSE;
*buff = '\0';
- if (NNTPsendpassword((char *)NULL, FromServer, ToServer) < 0) {
+ if (NNTPsendpassword(server, FromServer, ToServer) < 0) {
int oerrno = errno;
(void)fclose(FromServer);
(void)fclose(ToServer);
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Technical Details
Message-ID:
<ylbsz1hvt7.fsf@windlord.stanford.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<200008101715.NAA01307@darkstar.prodigy.com>Show Full Headers
Complete Article Headers
Message-ID: <ylbsz1hvt7.fsf@windlord.stanford.edu> Subject: Re: rnews: cant open_remote Illegal seek Date: Thu, 10 Aug 2000 00:00:00 +0000 From: rra@stanford.edu (Russ Allbery) References: <200008101715.NAA01307@darkstar.prodigy.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 656832880 Approved: mail-inn-workers@igor.zijn.net Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=us-ascii Organization: my personal mail2news gateway MIME-Version: 1.0 Newsgroups: news.software.nntp