Path: utzoo!attcan!uunet!wugate!wupost!kuhub.cc.ukans.edu!anu-news!list From: conslt32%ZEUS.UNL.EDU@VM1.NoDak.EDU (Tim Russell) Newsgroups: news.software.anu-news Subject: Problems with ADD FILE under 5.8A Message-ID: <4907@kuhub.cc.ukans.edu> Date: 8 Jul 89 23:54:00 GMT Lines: 43 I had this problem as well, a couple of weeks ago. I fixed it and forgot to post it to the net, I'm sorry.... :-) I spent an hour debugging, and found out that the problem has SOMETHING to do with the headers.. I really can't remember now and wish I had written it up, but the fix is easy... In file NEWSADD.C, routine add_file, there is a call to get_line that skips over some data, and there needs to be two calls. Here's the section: /* * add_file * * Read in file "fnam" into the news system. */ static add_file(fnam) char *fnam; { int retval = 0; if (!strlen(fnam)) return(printf("\tError: Add - No filename specified\n"),0); if (!(fpr = fopen(fnam,"r"))) return(printf("\tError: Add - Cannot read %s\n",fnam),0); printf("\nAdd - Reading file: %s\n\n",fnam); *add_inline = *fline = '\0'; infile_eof = next_eof = n_stripping = 0; first_msg = 1; |--------------| get_line(); get_line(); <---- |Add second | while (!infile_eof) { |get_line here | infile_eom = 0; |--------------| init_context(); if (!strncmp(add_inline,"N#! rnews ",10)) n_stripping = 1; ---------------------------------+-------------------------------------------- Tim Russell, Computer Operator | Internet: russell@zeus.unl.edu Campus Computing | Bitnet: russell@unoma1 University of Nebraska at Omaha | UUCP: uunet!zeus.unl.edu!russell ---------------------------------+--------------------------------------------