Ticket #3437: scan_find.2.diff

File scan_find.2.diff, 577 bytes (added by spam@…, 13 years ago)

Corrected version of the patch

  • scan.php

     
    4444// Now scan for any new ones
    4545    $paths = explode(':', setting('VideoStartupDir', hostname));
    4646    foreach ($paths as $path) {
    47         exec("find $path -readable -type f", $files, $retval);
     47        exec("find $path -perm -a-r -type f", $files, $retval);
    4848        foreach ($files as $file) {
    4949        // If we want to restrict to videos or not
    5050            if (setting('VideoListUnknownFiletypes', hostname) == 0)