-
Bug
-
Resolution: Not a bug
-
Trivial
-
None
-
4.0.5, 4.1
-
None
-
MOODLE_400_STABLE, MOODLE_401_STABLE
UPDATE: With apologies this isn't a bug, as clamav is a plugin in it's own right, I shouldn't have tried to set it as a global. See Paul Holden's comment below.
Testing instructions
- Install clamav on a Moodle server
- Enable the clamav antivirus plugin via /admin/category.php?category=antivirussettings
- Check that path is not configured at /admin/settings.php?section=antivirussettingsclamav
- Add the directive $CFG->pathtoclam = '/usr/bin/clamscan'; to config.php
- Repeat step 3 - Check that path is not configured at /admin/settings.php?section=antivirussettingsclamav
- (Optional) check that clamav actually works regardless.
The expected behavior is that pathtoclam should work exactly as other system paths do and not suggest to admins that the pathtoclam has not been configured when it actually has. This is particularly important when $CFG->preventexecpath = true; is also set, as it gives the appearance that clamav hasn't and cannot be set when in reality the status of pathtoclam is unknown.