From: Adam Sutton Date: Tue, 4 Dec 2012 20:13:16 +0000 (+0000) Subject: Issue #1423 - ensure that XMLTV grabber search does not crash. X-Git-Tag: v3.5~246 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=563b8f8c51a4fa0ee33c0ae8786f3fec84f70b4d;p=thirdparty%2Ftvheadend.git Issue #1423 - ensure that XMLTV grabber search does not crash. It appears that if paths are duplicated in the PATH env variable the internal search algorithm failed to detect this and could crash due to an assert in the internal modlue registration code. --- diff --git a/src/epggrab/module/xmltv.c b/src/epggrab/module/xmltv.c index 0352e4bb4..9ac90bb3b 100644 --- a/src/epggrab/module/xmltv.c +++ b/src/epggrab/module/xmltv.c @@ -677,6 +677,7 @@ static void _xmltv_load_grabbers ( void ) while ((de = readdir(dir))) { if (strstr(de->d_name, XMLTV_GRAB) != de->d_name) continue; snprintf(bin, sizeof(bin), "%s/%s", tmp, de->d_name); + if (epggrab_module_find_by_id(bin)) continue; if (stat(bin, &st)) continue; if (!(st.st_mode & S_IEXEC)) continue; if (!S_ISREG(st.st_mode)) continue;