From owner-svn-src-all@FreeBSD.ORG Sat Oct 27 17:43:31 2012 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 60B7053D; Sat, 27 Oct 2012 17:43:31 +0000 (UTC) (envelope-from crees@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 491A18FC16; Sat, 27 Oct 2012 17:43:31 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q9RHhV4i025245; Sat, 27 Oct 2012 17:43:31 GMT (envelope-from crees@svn.freebsd.org) Received: (from crees@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q9RHhVv5025243; Sat, 27 Oct 2012 17:43:31 GMT (envelope-from crees@svn.freebsd.org) Message-Id: <201210271743.q9RHhVv5025243@svn.freebsd.org> From: Chris Rees Date: Sat, 27 Oct 2012 17:43:31 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r242183 - head/etc X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Oct 2012 17:43:31 -0000 Author: crees (ports committer) Date: Sat Oct 27 17:43:30 2012 New Revision: 242183 URL: http://svn.freebsd.org/changeset/base/242183 Log: Allow spaces in _chroot Noticed by: adj (IRC/#bsdports) Approved by: hrs MFC after: 1 month Modified: head/etc/rc.subr Modified: head/etc/rc.subr ============================================================================== --- head/etc/rc.subr Sat Oct 27 17:39:36 2012 (r242182) +++ head/etc/rc.subr Sat Oct 27 17:43:30 2012 (r242183) @@ -261,8 +261,8 @@ _find_processes() _pref= if [ $_interpreter != "." ]; then # an interpreted script - _script=${_chroot}${_chroot:+"/"}$_procname - if [ -r $_script ]; then + _script="${_chroot}${_chroot:+/}$_procname" + if [ -r "$_script" ]; then read _interp < $_script # read interpreter name case "$_interp" in \#!*) @@ -705,7 +705,7 @@ run_rc_command() return 1 fi - if [ ! -x ${_chroot}${_chroot:+"/"}${command} ]; then + if [ ! -x "${_chroot}${_chroot:+/}${command}" ]; then warn "run_rc_command: cannot run $command" return 1 fi