Subject: mail.local: bug+fix
To: None <amiga-dev@sun-lamp.cs.berkeley.edu>
From: Hubert Feyrer <hubert.feyrer@rrzc1.rz.uni-regensburg.de>
List: amiga-dev
Date: 03/01/1994 21:55:46
I've think I've discovered a small but nasty bug in mail.local. The
variable rval is used to store the return-value, but it's only initialized
in some cases and remains undefined in others. So, it's wise to set rval
(in deliver()) to 0.

Here's what "diff -c mail.local.c mail.local.c" shows:

*** mail.local.c        Tue Mar  1 17:08:17 1994
--- mail.local.c.orig   Tue Mar  1 20:45:43 1994
***************
*** 175,182 ****
        char biffmsg[100], buf[8*1024], path[MAXPATHLEN], lpath[MAXPATHLEN];
        off_t curoff, lseek();
  
-       rval=0;
- 
        /*
         * Disallow delivery to unknown names -- special mailboxes can be
         * handled in the sendmail aliases file.
--- 174,179 ----


Is it possible someone checks this in into the main source tree?
Thanks!


Hubert

=============== Hubert Feyrer ============================================
      Weekdays: Rennerstr. 19, D-93053 Regensburg,  Tel. 0941/701788
      Weekends: Bachstr. 40,   D-84066 Mallersdorf, Tel. 08772/6084
      Internet: feyrer@rrzc1.rz.uni-regensburg.de === IRC: hubertf
==========================================================================
  Click here.

------------------------------------------------------------------------------