home *** CD-ROM | disk | FTP | other *** search
/ minnie.tuhs.org / unixen.tar / unixen / PDP-11 / Bug_Fixes / Net.v7bugs / 0024 < prev    next >
Encoding:
Text File  |  1981-07-13  |  1005 b   |  28 lines

  1. Autzoo.808
  2. NET.v7bugs,net.v7bugs
  3. utzoo!henry
  4. Mon Jul 13 21:59:44 1981
  5. uucp bugs
  6. In the distributed V7 uucp, uucp/chkpth.c/rdpth() has three separate bugs:
  7.  
  8. 1. Chaos and madness will ensue if there are more than 15 entries in the
  9.     USERFILE, because the Upt table has been misdeclared so that its
  10.     overflow check is against the wrong number.  Fix:  change the
  11.     "15" in the declaration of Upt (about line 16) to "MAXUSERS".
  12.  
  13. 2. Chaos and madness may ensue if there is no comma in the first field of
  14.     a USERFILE line.  Fix:  change the line (about line 130)
  15.         pc = u + strlen(u->us_lname);
  16.     to
  17.         pc = us->us_lname + strlen(u->us_lname);
  18.  
  19. 3. Any transfer request from a site with an 8-character (or longer)
  20.     system name will fail, giving PERMISSION (DENIED).  Unlike
  21.     all other uucp routines, rdpth is not truncating the system names
  22.     it reads from USERFILE to 7 characters max length.  Fix:  after
  23.     the line (about line 131):
  24.         u->us_mname = pc;
  25.     add:
  26.         if (strlen(u->us_mname) > 7)
  27.             u->us_mname[7] = '\0';
  28.