|Subject:||Don't check for file readability in _find|
|Date:||Mon, 22 Sep 2014 18:08:40 +0200|
|To:||bug-Module-Find [...] rt.cpan.org|
|From:||Ralf Ertzinger <ralf [...] camperquake.de>|
Version: 0.11 Perl version: 5.18.2 Linux 3.15.10 Module::Find is checking for file readability in _find() (via _wanted()) (/usr/share/perl5/vendor_perl/Module/Find.pm +164) This check is inaccurate in several ways in the presence of modern system capabilities like POSIX ACLs, SeLinux or AppArmor. - False negatives: a file is considered unreadable (and is thus ignored by for example findallmod()) even though it is readable by the user (happens when POSIX ACLs are used) - False positives: a file is considered readable even though it is not (happens when SeLinux or AppArmor are used) - The file permissions might change between calling findallmod() and the caller actually acting on the list Handling eventual failure in reading the files should be left to the caller which is best equipped to deal with it (it already has to take other kinds of read errors into account).