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

  1. Autzoo.1052
  2. net.v7bugs
  3. utzoo!henry
  4. Sat Oct 24 19:27:01 1981
  5. shell mail checking
  6. Bill Reeves of Lucasfilm has found a subtle bug in the Bourne shell's
  7. mail checking:  if the mailbox is temporarily nonexistent (some mail
  8. systems remove an empty mailbox), the shell can get a garbage mail date
  9. into its memory, which can effectively suppress mail checking thenceforth.
  10. The fix is like this, in main.c (line numbers are approximate):
  11.  
  12. 139,140c139,141
  13. <                 ANDF mailtime
  14. <             THEN    prs(mailmsg)
  15. ---
  16. >             THEN
  17. >                 IF mailtime THEN prs(mailmsg) FI
  18. >                 mailtime=statb.st_mtime;
  19. 142d142
  20. <             mailtime=statb.st_mtime;
  21.