summaryrefslogtreecommitdiffstats
path: root/chrome/tools
diff options
context:
space:
mode:
authormark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-29 16:58:10 +0000
committermark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-29 16:58:10 +0000
commit5c558bc54d375335982ebcd947840a9a1f4eab40 (patch)
tree0794785bed33cbd53ee346eb1e20a889c48d0537 /chrome/tools
parenta6c49479a346fc9d2b9c69d20d96789e2f434cb4 (diff)
downloadchromium_src-5c558bc54d375335982ebcd947840a9a1f4eab40.zip
chromium_src-5c558bc54d375335982ebcd947840a9a1f4eab40.tar.gz
chromium_src-5c558bc54d375335982ebcd947840a9a1f4eab40.tar.bz2
Mac updater: set sane permissions on symbolic links (when possible).
BUG=none TEST=none Review URL: http://codereview.chromium.org/344022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30461 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/tools')
-rwxr-xr-xchrome/tools/build/mac/keystone_install.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/tools/build/mac/keystone_install.sh b/chrome/tools/build/mac/keystone_install.sh
index 386cf62..40d3a50 100755
--- a/chrome/tools/build/mac/keystone_install.sh
+++ b/chrome/tools/build/mac/keystone_install.sh
@@ -304,5 +304,10 @@ fi
chmod -R "${CHMOD_MODE}" "${DEST}" >& /dev/null
+# On the Mac, or at least on HFS+, symbolic link permissions are significant,
+# but chmod -R and -h can't be used together on the Mac. Do another pass to
+# fix the permissions on any symbolic links.
+find "${DEST}" -type l -exec chmod -h "${CHMOD_MODE}" {} \; >& /dev/null
+
# Great success!
exit 0