From 8ff12894aa32493e0044189654366472f5bd14ff Mon Sep 17 00:00:00 2001 From: Adam Sutton Date: Mon, 26 Nov 2012 14:54:18 +0000 Subject: [PATCH] xmltv: was incorrectly blocking symlinked scripts. --- src/epggrab/module/xmltv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/epggrab/module/xmltv.c b/src/epggrab/module/xmltv.c index 55f0bc62..0352e4bb 100644 --- a/src/epggrab/module/xmltv.c +++ b/src/epggrab/module/xmltv.c @@ -677,7 +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 (lstat(bin, &st)) continue; + if (stat(bin, &st)) continue; if (!(st.st_mode & S_IEXEC)) continue; if (!S_ISREG(st.st_mode)) continue; if ((outlen = spawn_and_store_stdout(bin, argv, &outbuf)) > 0) {