From 2f670ce777481ed53051d70dd4900fcd4c150215 Mon Sep 17 00:00:00 2001 From: Joris Vink Date: Wed, 22 Feb 2017 17:52:38 +0100 Subject: [PATCH] don't log failure if unlinking fails with ENOENT --- src/http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/http.c b/src/http.c index d879115..591f331 100644 --- a/src/http.c +++ b/src/http.c @@ -537,7 +537,7 @@ http_request_free(struct http_request *req) (void)close(req->http_body_fd); if (req->http_body_path != NULL) { - if (unlink(req->http_body_path) == -1) { + if (unlink(req->http_body_path) == -1 && errno != ENOENT) { kore_log(LOG_NOTICE, "failed to unlink %s: %s", req->http_body_path, errno_s); }