From 5367038ab83e5927d295549c7fe603408ba1ef08 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fr=C3=A9d=C3=A9ric=20Marchal?= Date: Sun, 15 Jul 2012 19:10:27 +0200 Subject: [PATCH] Don't report an error when deleting the denied temporary file The file can be deleted at two places. If the first call delete it, the second call must not report an error. --- log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/log.c b/log.c index 7b20153..e1a9ade 100644 --- a/log.c +++ b/log.c @@ -1693,7 +1693,7 @@ int main(int argc,char *argv[]) gerarel(); if((ReportType & REPORT_TYPE_DENIED) != 0) { - if (!KeepTempLog && unlink(denied_sort)) + if (!KeepTempLog && unlink(denied_sort) && errno!=ENOENT) debuga(_("Cannot delete \"%s\": %s\n"),denied_sort,strerror(errno)); } -- 2.47.2