Ticket #3437: scan_find.2.diff
File scan_find.2.diff, 577 bytes (added by , 17 years ago) |
---|
-
scan.php
44 44 // Now scan for any new ones 45 45 $paths = explode(':', setting('VideoStartupDir', hostname)); 46 46 foreach ($paths as $path) { 47 exec("find $path - readable-type f", $files, $retval);47 exec("find $path -perm -a-r -type f", $files, $retval); 48 48 foreach ($files as $file) { 49 49 // If we want to restrict to videos or not 50 50 if (setting('VideoListUnknownFiletypes', hostname) == 0)