With the UNIX file command mimedetect adds the option --list. This is not supported for older versions of file, and results in the error File command execution failed with exit code 1 when configuring the module.

file-5.25 supports --list

but on Centos 6:
# file --version
file-5.04
magic file from /etc/magic:/usr/share/misc/magic
# file --list
file: unrecognized option '--list'
Usage: file [-bchikLNnprsvz0] [--apple] [--mime-encoding] [--mime-type]
[-e testname] [-F separator] [-f namefile] [-m magicfiles] file ...
file -C [-m magicfiles]
file [--help]

Comments

apiddington created an issue. See original summary.

manuel.adan’s picture

Status: Active » Fixed

Fixed in latest -dev. UNIX file command version is now shown in the status report at admin/reports/status. See GIT commit for more details.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

brad.bulger’s picture

RHEL 5.11 file returns an exit code of 1 from --version

manuel.adan’s picture

Unfortunately it is not possible to support old or obsolete versions. Note that older versions will not detect new file types or will do so in a wrong way. Try to update the 'file' package in your system.