Re: [exim] Bug in exim-tidydb and split queue directories

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Nico Erfurth
Dátum:  
Címzett: exim-users
CC: ph10
Tárgy: Re: [exim] Bug in exim-tidydb and split queue directories
This patch should fix it.

diff -uNr exim-4.44-snapshot1/src/exim_dbutil.c 
exim-4.44-snapshot1-tidydb/src/exim_dbutil.c
--- exim-4.44-snapshot1/src/exim_dbutil.c       2004-11-25 
14:54:53.000000000 +0100
+++ exim-4.44-snapshot1-tidydb/src/exim_dbutil.c        2004-12-01 
11:25:30.868144048 +0100
@@ -1246,8 +1246,12 @@


      if (Ustat(buffer, &statbuf) != 0)
        {
-      dbfn_delete(dbm, key);
-      printf("deleted %s (no message)\n", key);
+        sprintf(CS(buffer + path_len), "%c/%s-D", id[5], id);
+        if (Ustat(buffer, &statbuf) != 0)
+          {
+          dbfn_delete(dbm, key);
+          printf("deleted %s (no message)\n", key);
+          }
        }
      }
    }