From: Frédéric Marchal Date: Sun, 15 Jul 2012 16:58:10 +0000 (+0200) Subject: Delete the sorted smartfilter temporary file X-Git-Tag: v2.3.3~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=feae26582e3744140b1cd1402afc686bc8cb4133;p=thirdparty%2Fsarg.git Delete the sorted smartfilter temporary file --- 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; }