From 6c7e007f28f871e84340727f948a4da10e979f80 Mon Sep 17 00:00:00 2001 From: "mark@chromium.org" Date: Mon, 30 Nov 2009 02:26:05 +0000 Subject: Add /sbin and /usr/sbin to .keystone_install's PATH BUG=28533 TEST=See bug 28533 Review URL: http://codereview.chromium.org/448002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33259 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/tools/build/mac/keystone_install.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/chrome/tools/build/mac/keystone_install.sh b/chrome/tools/build/mac/keystone_install.sh index 2ca3323..e4fd4cb 100755 --- a/chrome/tools/build/mac/keystone_install.sh +++ b/chrome/tools/build/mac/keystone_install.sh @@ -23,6 +23,13 @@ set -e +# http://b/2290916: Keystone runs the installation with a restrictive PATH +# that only includes the directory containing ksadmin, /bin, and /usr/bin. It +# does not include /sbin or /usr/sbin. This script uses lsof, which is in +# /usr/sbin, and it's conceivable that it might want to use other tools in an +# sbin directory. Adjust the path accordingly. +export PATH="${PATH}:/sbin:/usr/sbin" + # Returns 0 (true) if the parameter exists, is a symbolic link, and appears # writable on the basis of its POSIX permissions. This is used to determine # writeability like test's -w primary, but -w resolves symbolic links and this -- cgit v1.1