From 29731b1d2fed0c24b3a5276f103585adfb6c725c Mon Sep 17 00:00:00 2001 From: TangoCash Date: Fri, 9 Sep 2022 22:43:15 +0200 Subject: [PATCH] log failed tp remove xml epg --- src/eitd/xmlutil.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/eitd/xmlutil.cpp b/src/eitd/xmlutil.cpp index 8088f93d2..7a79aed5f 100644 --- a/src/eitd/xmlutil.cpp +++ b/src/eitd/xmlutil.cpp @@ -713,7 +713,9 @@ void *insertEventsfromXMLTV(void * data) if (!access(tmp_name.c_str(), R_OK)) { readEventsFromXMLTV(tmp_name, ev_count); - remove(tmp_name.c_str()); + int ret = unlink(tmp_name.c_str()); + if (ret != 0) + printf("Failed to delete file: %s\n", tmp_name.c_str()); } } else