Article View: news.software.nn
Article #8892Re: NN on Solaris 2.6 problem
From: Peter Rye
Date: Thu, 12 Feb 1998 00:00
Date: Thu, 12 Feb 1998 00:00
100 lines
3893 bytes
3893 bytes
long@njl2.materials.ox.ac.uk (Neil J Long) writes:
> > >>Do you have inews installed? If not, install mini-inews from the nn
>> > >>distribution. Once upon a time, inews was installed anywhere that people
>> > >>read news (rn and vn needed it as well). Today, most newsreaders post news
>> > >>directly and it's often not installed. When I get back to work on the next
>> > >>version of nn this is one of the things that will get changed.
>>
>>
>> > >Yes, I installed inews but I am not sure if it gets that far or does it
>> > >interact with inews before kicking in to 'vi'?
>> >
>> > Someone sent me email saying the same thing. I have seen this problem
>> > before (and worked around it), but I don't remember what it was.
>> > I'll look into it.
>>
>> I have seen the same problem recently with the inews included in the nn
>> source.
>> I thought it had been fixed previously by somebody, however I needed to
>> hack the current source slightly to get it to work.
>> The major problem appears to be that it doesn't send the 'MODE READER'
>> string to the server prior to the 'POST' command.
>> (At least that's what seemed to be the case when posting to my own INN
>> server.) It's a trivial fix, I can probably dig up a patch if you like.
>> I also had to stop inews putting in it's own path to get everything to
>> behave, but that may have been a configuration error on my part.
Here's a patch to the inews source which I used (works here, no
guarantees).
*** nn-patched/inews/inews.c Thu Feb 12 17:49:01 1998
--- nn-6.5.1/inews/inews.c Thu Feb 12 17:58:22 1998
***************
*** 85,88 ****
--- 85,103 ----
exit(1);
}
+
+ put_server("MODE READER");
+ (void) get_server(line, sizeof(line));
+ if (*line != CHAR_OK) {
+ if (atoi(line) == ERR_NOPOST) {
+ close_server();
+ fprintf(stderr,
+ "Sorry, you can't post from this machine.\n");
+ exit(1);
+ } else {
+ close_server();
+ fprintf(stderr, "Remote error: %s\n", line);
+ exit(1);
+ }
+ }
put_server("POST");
***************
*** 114,118 ****
seen_fromline = 1;
}
!
if (in_header && s[0] == '\0') {
if (seen_header) {
--- 129,133 ----
seen_fromline = 1;
}
!
if (in_header && s[0] == '\0') {
if (seen_header) {
***************
*** 295,299 ****
fprintf(ser_wr_fp, ")\r\n");
!
#ifdef HIDDENNET
/* Only the login name - nntp server will add uucp name */
--- 310,315 ----
fprintf(ser_wr_fp, ")\r\n");
! #if 0
! /* We rely on the INN server to add the path */
#ifdef HIDDENNET
/* Only the login name - nntp server will add uucp name */
***************
*** 302,305 ****
--- 318,322 ----
fprintf(ser_wr_fp, "Path: %s!%s\r\n", host_name, passwd->pw_name);
#endif /* HIDDENNET */
+ #endif
}
--
Peter Rye <prye@picu-sgh.demon.co.uk>
Consultant in Paediatric Intensive Care, St. George's Hospital, London, UK
Ph: +44 (0)181 725 1932 Fax: +44 (0)181 725 0089
** Smoking areas in restaurants are like peeing areas in swimming pools. **
Technical Details
Message-ID:
<6bvdq8$q52$1@picu-sgh.demon.co.uk>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nn.mbox.zip!not-for-mailReferences:
<6beijq$g55$1@news.ox.ac.uk> <rNJD.6$N1.32227@ptah.visi.com> <m3iuqnjfyx.fsf@picu-sgh.demon.co.uk> <6bs43e$33n$1@news.ox.ac.uk>Show Full Headers
Complete Article Headers
Message-ID: <6bvdq8$q52$1@picu-sgh.demon.co.uk> Subject: Re: NN on Solaris 2.6 problem Date: Thu, 12 Feb 1998 00:00:00 +0000 From: prye@picu-sgh.demon.co.uk (Peter Rye) References: <6beijq$g55$1@news.ox.ac.uk> <rNJD.6$N1.32227@ptah.visi.com> <m3iuqnjfyx.fsf@picu-sgh.demon.co.uk> <6bs43e$33n$1@news.ox.ac.uk> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nn.mbox.zip!not-for-mail X-Deja-AN: 324532005 X-NNTP-Posting-Host: picu-sgh.demon.co.uk [194.222.182.163] Organization: St. George's Hospital, Paediatric ICU Newsgroups: news.software.nn