Missing unlink on the tmp database when nothing-to-do.
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Fri, 17 Oct 2008 19:37:17 +0000 (21:37 +0200)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Fri, 17 Oct 2008 19:37:17 +0000 (21:37 +0200)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
postlicyd/greylist.c

index 4cbe8b9..83ad413 100644 (file)
@@ -157,6 +157,7 @@ static TCBDB *greylist_db_get(const greylist_config_t *config,
                 return NULL;
             }
         } else {
+            unlink(tmppath);
             info("database cleanup finished: nothing to do, %u entries", new_count);
         }
     }