| OLD | NEW |
| 1 #!/bin/bash -p | 1 #!/bin/bash -p |
| 2 | 2 |
| 3 # Copyright (c) 2009 The Chromium Authors. All rights reserved. | 3 # Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
| 6 | 6 |
| 7 # Called as root after Keystone ticket promotion to change the owner, group, | 7 # Called as root after Keystone ticket promotion to change the owner, group, |
| 8 # and permissions on the application. The application bundle and its contents | 8 # and permissions on the application. The application bundle and its contents |
| 9 # are set to owner root, group wheel, and to be writable only by root, but | 9 # are set to owner root, group wheel, and to be writable only by root, but |
| 10 # readable and executable (when appropriate) by everyone. | 10 # readable and executable (when appropriate) by everyone. |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 | 41 |
| 42 CHMOD_MODE="a+rX,u+w,go-w" | 42 CHMOD_MODE="a+rX,u+w,go-w" |
| 43 chmod -R "${CHMOD_MODE}" "${APP}" >& /dev/null | 43 chmod -R "${CHMOD_MODE}" "${APP}" >& /dev/null |
| 44 | 44 |
| 45 # On the Mac, or at least on HFS+, symbolic link permissions are significant, | 45 # On the Mac, or at least on HFS+, symbolic link permissions are significant, |
| 46 # but chmod -R and -h can't be used together. Do another pass to fix the | 46 # but chmod -R and -h can't be used together. Do another pass to fix the |
| 47 # permissions on any symbolic links. | 47 # permissions on any symbolic links. |
| 48 find "${APP}" -type l -exec chmod -h "${CHMOD_MODE}" {} + >& /dev/null | 48 find "${APP}" -type l -exec chmod -h "${CHMOD_MODE}" {} + >& /dev/null |
| 49 | 49 |
| 50 exit 0 | 50 exit 0 |
| OLD | NEW |