forked from mirrors/kore
don't log failure if unlinking fails with ENOENT
This commit is contained in:
parent
fc6b3bf740
commit
2f670ce777
|
@ -537,7 +537,7 @@ http_request_free(struct http_request *req)
|
||||||
(void)close(req->http_body_fd);
|
(void)close(req->http_body_fd);
|
||||||
|
|
||||||
if (req->http_body_path != NULL) {
|
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",
|
kore_log(LOG_NOTICE, "failed to unlink %s: %s",
|
||||||
req->http_body_path, errno_s);
|
req->http_body_path, errno_s);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue