🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
2 messages
2 total messages Started by Kuo-Chien Kai (035)715131-1124 Thu, 30 Apr 1992 14:02
Bugs found in TIN 1.1.2
#1503
Author: Kuo-Chien Kai (035)715131-1124
Date: Thu, 30 Apr 1992 14:02
84 lines
3609 bytes
I found the following problems in tin and gave them my
solutions.
Correct me if I am wrong.

 ###########################################################
 # Identifying the article author and the reader should be #
 # done before cancelling an article.                      #
 ###########################################################
                                  /* In post.c                   */
  int cancel_article (respnum)    /* respnum should be passed if */
    int respnum;                  /* cancel_article() is called  */
    {
          :
      char myfrom[LEN];
          :
          :
        strcpy(myfrom,userid);
        strcat(myfrom,"@");
        strcat(myfrom, SITENAME);   /* SITENAME should be defined as */
        strcat(myfrom, "\0");       /* our mail domain               */
        if (strcasecmp(myfrom, arts[respnum].from)!=0){
           info_message (txt_cannot_cancel);
           set_tin_uid_gid ();
           return (redraw_screen);
        }
        /* The above identification should be done before preparing */
        /* a cancel message.                                        */

        sprintf (cancel, "%s/.cancel", homedir);
        if ((fp = fopen (cancel, "w")) == NULL) {
           :
           :

  }


 ###################################################################
 # Incorrect indexing heppens if news is read remotely. Namely, if #
 # news is read remotely, the first few articles NEVER show up if  #
 # the filenames of the articles are not consecutive.              #
 ###################################################################
   void setup_base (group, group_path)   /* In open.c   */
   {
        :
      sscanf (line,"%ld %ld %ld %ld", &dummy, &count, &start, &last);
                                    /*
      if (last - count > start) {      This problem is from here.
         start = last - count;         Could you tell me its purpose.
      }                             */
        :
        :
   }



 #################################################################
 # A space is needed between arts[respnum].from and add_addr.    #
 #################################################################
   int mail_to_author (respnum, copy_text)  /* In post.c */
   {    :
                         |
              /* A space v here is needed */
     fprintf (fp, "To: %s %s  (%s) \n",
              arts[respnum].from, add_addr, arts[respnum].name);
        :
        :
   }



 #################################################################
 # Something I don't understand.                                 #
 #################################################################
 I have about 1750 newsgroups in my machine. It seems OK to me
 even DEFAULT_ACTIVE_NUM is defined as 1600.


--------------------------------
Kuo-Chien Kai
System Engineer
Computer Center
National Tsing Hua University
Taiwan
Re: Bugs found in TIN 1.1.2
#1506
Author: Iain Lea
Date: Thu, 30 Apr 1992 17:26
39 lines
2403 bytes
In article <1992Apr30.140224.27375%kckai@cc.nthu.edu.tw> you write:
: 
: I found the following problems in tin and gave them my
: solutions.
: Correct me if I am wrong.
I will.

:  ###########################################################
:  # Identifying the article author and the reader should be #
:  # done before cancelling an article.                      #
:  ###########################################################
Correct. Fixed in PL3.

:  ###################################################################
:  # Incorrect indexing heppens if news is read remotely. Namely, if #
:  # news is read remotely, the first few articles NEVER show up if  #
:  # the filenames of the articles are not consecutive.              #
:  ###################################################################
Hmm, Can't say I've noticed.

:  #################################################################
:  # A space is needed between arts[respnum].from and add_addr.    #
:  #################################################################
Err, not on my machine.

:  #################################################################
:  # Something I don't understand.                                 #
:  #################################################################
:  I have about 1750 newsgroups in my machine. It seems OK to me
:  even DEFAULT_ACTIVE_NUM is defined as 1600.
The active array is expanded by the expand_active() function. 

Iain

--
NAME   Iain Lea 
EMAIL  iain%anl433.uucp@germany.eu.net
SNAIL  Siemens AG, ANL A433SZ, Gruendlacher Str. 248, 8510 Fuerth, Germany.
PHONE  +49-911-3089-407 (work) +49-911-331963 (home) +49-911-3089-290 (FAX)  
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