🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #1503

Bugs found in TIN 1.1.2

#1503
From: 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
Technical Details
Message-ID: <1992Apr30.140224.27375%kckai@cc.nthu.edu.tw>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!sparky!uunet!wupost!darwin.sura.net!jvnc.net!moesun.edu.tw!debbie!Uz.nthu.edu.tw!Net.nthu.edu.tw!kckai

Show Full Headers
Complete Article Headers
Message-ID: <1992Apr30.140224.27375%kckai@cc.nthu.edu.tw>
Subject: Bugs found in TIN 1.1.2
Date: Thu, 30 Apr 1992 14:02:24 GMT
From: kckai@cc.nthu.edu.tw (Kuo-Chien Kai (035)715131-1124)
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!sparky!uunet!wupost!darwin.sura.net!jvnc.net!moesun.edu.tw!debbie!Uz.nthu.edu.tw!Net.nthu.edu.tw!kckai
Newsgroups: news.software.readers
Organization: National Tsing Hua University (HsinChu)
Lines: 85