From owner-svn-src-head@FreeBSD.ORG Tue Mar 19 04:42:05 2013 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 107124A2; Tue, 19 Mar 2013 04:42:05 +0000 (UTC) (envelope-from cperciva@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id ECDDFED; Tue, 19 Mar 2013 04:42:04 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.6/8.14.6) with ESMTP id r2J4g4Nk035825; Tue, 19 Mar 2013 04:42:04 GMT (envelope-from cperciva@svn.freebsd.org) Received: (from cperciva@localhost) by svn.freebsd.org (8.14.6/8.14.5/Submit) id r2J4g4Js035824; Tue, 19 Mar 2013 04:42:04 GMT (envelope-from cperciva@svn.freebsd.org) Message-Id: <201303190442.r2J4g4Js035824@svn.freebsd.org> From: Colin Percival Date: Tue, 19 Mar 2013 04:42:04 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r248487 - head/etc/rc.d X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 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: Tue, 19 Mar 2013 04:42:05 -0000 Author: cperciva Date: Tue Mar 19 04:42:04 2013 New Revision: 248487 URL: http://svnweb.freebsd.org/changeset/base/248487 Log: If dumpdev is AUTO but no dump device has been set -- i.e., there is no swap space configured for rc.d/dumpon to designate for dumping -- then exit silently rather than with a > realpath: /dev/dumpdev: No such file or directory error message. An argument could be made that we should print a (more informative) warning message; but given that under the same conditions the rc.d/dumpon script will already print a > No suitable dump device was found warning, it seems that printing an additional > Dump device does not exist. Savecore not run. warning would be superfluous. Modified: head/etc/rc.d/savecore Modified: head/etc/rc.d/savecore ============================================================================== --- head/etc/rc.d/savecore Tue Mar 19 00:39:02 2013 (r248486) +++ head/etc/rc.d/savecore Tue Mar 19 04:42:04 2013 (r248487) @@ -23,6 +23,9 @@ savecore_prestart() return 1 ;; [Aa][Uu][Tt][Oo]) + if [ ! -L /bin/realpath ]; then + return 1 + fi dumpdev=`/bin/realpath /dev/dumpdev` ;; esac