]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
xmltv: was incorrectly blocking symlinked scripts.
authorAdam Sutton <dev@adamsutton.me.uk>
Mon, 26 Nov 2012 14:54:18 +0000 (14:54 +0000)
committerAdam Sutton <dev@adamsutton.me.uk>
Wed, 28 Nov 2012 09:43:13 +0000 (09:43 +0000)
src/epggrab/module/xmltv.c

index 55f0bc62353476488497f84a2051bc34c7f69f18..0352e4bb40f2815f59dd05fa45e44fce1d9e4ac2 100644 (file)
@@ -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) {