1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-16 10:20:30 +00:00

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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=217090

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"