xmltv: was incorrectly blocking symlinked scripts.

This commit is contained in:
Adam Sutton 2012-11-26 14:54:18 +00:00
parent 95134ddbb5
commit 8ff12894aa

View 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) {