Date: Wed, 9 Feb 2011 15:55:48 +0000 (UTC) From: Jaakko Heinonen <jh@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org Subject: svn commit: r218489 - stable/8/etc Message-ID: <201102091555.p19FtmnP089349@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201102091555.p19FtmnP089349>