Re: [exim-dev] current snapshot (was: patch for named acl va…

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Nico Erfurth
Datum:  
To: exim-dev
Betreff: Re: [exim-dev] current snapshot (was: patch for named acl variables)
Nico Erfurth wrote:

> I've just checked my own logfiles, but the error never occured here, but
> I'll have a look.


Ok, I think I got it. The unspooling section of spool_mbox.c does not
close the file before it checks for the filesize, so some data might
still be in the glibc data buffers.

I think this patch should fix it.

Nico

--- spool_mbox.c.buggy  2006-09-21 17:55:42.000000000 +0200
+++ spool_mbox.c        2006-09-21 17:56:15.000000000 +0200
@@ -139,6 +139,7 @@
          };
        };
      } while (j > 0);
+    (void)fclose(mbox_file);


      Ustrcpy(spooled_message_id, message_id);
      spool_mbox_ok = 1;