]> git.ipfire.org Git - thirdparty/sarg.git/commitdiff
Delete the sorted smartfilter temporary file
authorFrédéric Marchal <fmarchal@users.sourceforge.net>
Sun, 15 Jul 2012 16:58:10 +0000 (18:58 +0200)
committerFrédéric Marchal <fmarchal@users.sourceforge.net>
Sun, 15 Jul 2012 16:58:10 +0000 (18:58 +0200)
smartfilter.c

index 8be425ea98035079b97ca0782ceb07b40a3f0414..240a65b2f84123b5b22c375bfe8cbe18e943b15a 100644 (file)
@@ -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;
 }