Thread View: news.software.nntp
2 messages
2 total messages
Started by bill davidsen
Thu, 10 Aug 2000 00:00
rnews: cant open_remote Illegal seek
Author: bill davidsen
Date: Thu, 10 Aug 2000 00:00
Date: Thu, 10 Aug 2000 00:00
31 lines
1844 bytes
1844 bytes
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. The
funny thing is that it doesn't happen if I replace the host name with
"localhost" and try to re-offer them, they are offered (and rejected of
course) just fine.
Permissions on the remote are fine, and if I write the storage tokens
for the articles in a file, and then:
system("innxmit -a -v -P 433 remote $PWD/token_file");
the articles are sent without problem.
A sniffer shows that the socket is never opened by rnews, so it's a
problem there and nowhere else.
INN 2.3 BETA 00-07-23. I have this exact logic working on another
machine, using the 99-12-07 (or so) INN 2.3, so I'm willing to believe
that it's really broken if someone tells me so, but I think I remember
something totally unobvious causes this. Someone remind me, please.
Re: rnews: cant open_remote Illegal seek
Author: 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/>
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads