Warn if rules could not be read from a ruleset file. Now at least

something gets logged if the file has syntax errors.

PR:		conf/91342
Silence on:	freebsd-rc
This commit is contained in:
Jaakko Heinonen 2011-01-07 10:59:22 +00:00
parent 102f2f352f
commit 8ef92ea65e

View File

@ -1349,7 +1349,10 @@ devfs_init_rulesets()
return
fi
for file in $devfs_rulesets; do
devfs_rulesets_from_file $file || return 1
if ! devfs_rulesets_from_file $file; then
warn "$_me: could not read rules from $file"
return 1
fi
done
devfs_rulesets_init=1
debug "$_me: devfs rulesets initialized"