svn commit: r218489 - stable/8/etc
Jaakko Heinonen
jh at FreeBSD.org
Wed Feb 9 15:55:48 UTC 2011
Author: jh
Date: Wed Feb 9 15:55:48 2011
New Revision: 218489
URL: http://svn.freebsd.org/changeset/base/218489
Log:
MFC r217090:
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
Modified:
stable/8/etc/rc.subr
Directory Properties:
stable/8/etc/ (props changed)
Modified: stable/8/etc/rc.subr
==============================================================================
--- stable/8/etc/rc.subr Wed Feb 9 15:43:38 2011 (r218488)
+++ stable/8/etc/rc.subr Wed Feb 9 15:55:48 2011 (r218489)
@@ -1348,7 +1348,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"
More information about the svn-src-stable
mailing list