From feae26582e3744140b1cd1402afc686bc8cb4133 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fr=C3=A9d=C3=A9ric=20Marchal?= Date: Sun, 15 Jul 2012 18:58:10 +0200 Subject: [PATCH] Delete the sorted smartfilter temporary file --- smartfilter.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/smartfilter.c b/smartfilter.c index 8be425e..240a65b 100644 --- a/smartfilter.c +++ b/smartfilter.c @@ -207,5 +207,10 @@ void smartfilter_report(void) fclose(fp_user); } + if (!KeepTempLog && unlink(smart_ou)) { + debuga(_("Cannot delete \"%s\": %s\n"),smart_ou,strerror(errno)); + exit(EXIT_FAILURE); + } + return; } -- 2.39.2