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:
parent
102f2f352f
commit
8ef92ea65e
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user