From owner-svn-src-head@FreeBSD.ORG Fri Jan 7 10:59:23 2011 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 510801065696; Fri, 7 Jan 2011 10:59:23 +0000 (UTC) (envelope-from jh@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 40E5D8FC15; Fri, 7 Jan 2011 10:59:23 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id p07AxNdB049136; Fri, 7 Jan 2011 10:59:23 GMT (envelope-from jh@svn.freebsd.org) Received: (from jh@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id p07AxN1F049134; Fri, 7 Jan 2011 10:59:23 GMT (envelope-from jh@svn.freebsd.org) Message-Id: <201101071059.p07AxN1F049134@svn.freebsd.org> From: Jaakko Heinonen Date: Fri, 7 Jan 2011 10:59:23 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r217090 - head/etc X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Jan 2011 10:59:23 -0000 Author: jh Date: Fri Jan 7 10:59:22 2011 New Revision: 217090 URL: http://svn.freebsd.org/changeset/base/217090 Log: 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 Modified: head/etc/rc.subr Modified: head/etc/rc.subr ============================================================================== --- head/etc/rc.subr Fri Jan 7 08:45:56 2011 (r217089) +++ head/etc/rc.subr Fri Jan 7 10:59:22 2011 (r217090) @@ -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"