Hmm, well I've managed to make it "work" with the following patch:


--- mbox.c.orig Wed Apr 26 15:34:13 2000
+++ mbox.c      Wed Apr 26 15:33:30 2000
@@ -679,7 +679,14 @@
   /* need to open the file for writing in such a way that it does not truncate
    * the file, so use read-write mode.
    */
-  if ((ctx->fp = freopen (ctx->path, "r+", ctx->fp)) == NULL)
+  if (fclose (ctx->fp) != 0)
+  {
+    mx_fastclose_mailbox (ctx);
+    mutt_error _("Fatal error!  Could not close mailbox!");
+    return (-1);
+  }
+
+  if ((ctx->fp = fopen (ctx->path, "r+")) == NULL)
   {
     mx_fastclose_mailbox (ctx);
     mutt_error _("Fatal error!  Could not reopen mailbox!");


which doesn't really make sense, I know.
Could this be a bug in glibc 2.1.3?

 .robin.

Reply via email to