rnews: cant open_remote Illegal seek
Russ Allbery
rra at stanford.edu
Thu Aug 10 17:26:12 UTC 2000
bill davidsen <davidsen at 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 at stanford.edu) <http://www.eyrie.org/~eagle/>
More information about the inn-workers
mailing list