home *** CD-ROM | disk | FTP | other *** search
/ minnie.tuhs.org / unixen.tar / unixen / PDP-11 / Bug_Fixes / Net.v7bugs / 0038 < prev    next >
Encoding:
Text File  |  1981-10-30  |  823 b   |  23 lines

  1. Autzoo.1084
  2. net.v7bugs
  3. utzoo!henry
  4. Fri Oct 30 17:06:46 1981
  5. shell bugfix bugfix
  6. Bill Reeves's fix to shell mail checking, which I broadcast a couple
  7. of days ago, inadvertently added a new bug.  Bill's mod fixed the shell
  8. so it did mail checking properly in the presence of a mail system that
  9. removes empty mailboxes;  the "fixed" shell misbehaves if your mail
  10. system does NOT remove empty mailboxes.  The code which works right
  11. either way is like this (about line 136 in main.c):
  12.  
  13.         THEN    IF mailnod.namval ANDF mailnod.namval[0] != '\0'
  14.                 ANDF stat(mailnod.namval,&statb)>=0 
  15.                 ANDF (statb.st_mtime != mailtime)
  16.             THEN
  17.                 IF mailtime ANDF statb.st_size THEN prs(mailmsg) FI
  18.                 mailtime=statb.st_mtime;
  19.             FI
  20.  
  21. This also incorporates another minor fix done here:  no mail checking
  22. if the value of $MAIL is null.
  23.