Opened 17 years ago

Closed 17 years ago

#3437 closed defect (fixed)

Invalid argument to 'find' in mythweb video module scan collection

Reported by: anonymous Owned by: Rob Smith
Priority: minor Milestone: unknown
Component: mythweb Version: head
Severity: medium Keywords:
Cc: Ticket locked: no

Description

scan.php includes the argument '-readable' to the find command which on the find included with findutils 4.2.27 (CentOS 5.0) is not valid:

[darryl@server1 mythweb]$ find /mnt/media1/videos/ -readable -type f
find: invalid predicate `-readable'

The man page suggests '-perm -a+r'. I have a patch which I will attach in a sec.

Attachments (2)

scan_find.diff (577 bytes) - added by spam@… 17 years ago.
scan_find.2.diff (577 bytes) - added by spam@… 17 years ago.
Corrected version of the patch

Download all attachments as: .zip

Change History (5)

Changed 17 years ago by spam@…

Attachment: scan_find.diff added

Changed 17 years ago by spam@…

Attachment: scan_find.2.diff added

Corrected version of the patch

comment:1 Changed 17 years ago by spam@…

Sorry, attached wrong version of the patch.

comment:2 Changed 17 years ago by Rob Smith

Owner: changed from xris to Rob Smith
Status: newassigned

comment:3 Changed 17 years ago by Rob Smith

Resolution: fixed
Status: assignedclosed

(In [13439]) Re #3117, Fixes #3437, this removes the readable arg to find and replaces it with a php side check, as older find versions does not have the readable flag

Note: See TracTickets for help on using tickets.