Project

General

Profile

« Previous | Next » 

Revision d36cf2c9

Added by Jim Pingle over 6 years ago

Test modules path before scanning. Fixes #9400

View differences:

src/etc/inc/util.inc
2168 2168
	/* Generate hints for the kernel loader. */
2169 2169
	$module_paths = explode(";", get_single_sysctl("kern.module_path"));
2170 2170
	foreach ($module_paths as $id => $path) {
2171
		if (file_exists("$path/linker.hints")) {
2171
		if (!is_dir($path) || file_exists("{$path}/linker.hints")) {
2172 2172
			continue;
2173 2173
		}
2174 2174
		if (($files = scandir($path)) == false) {

Also available in: Unified diff