summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorJay Freeman <saurik@saurik.com>2009-08-09 09:49:24 +0000
committerJay Freeman <saurik@saurik.com>2009-08-09 09:49:24 +0000
commit3a2624191678d437f4013126661ff5c84961cebb (patch)
treea123476ba2a856eecf8bbbe287401542f1ecd696 /arch
parent5143477f38846d1a2a2c2f994d5613f80a638fbf (diff)
Backup/restore permissions during ldid.
git-svn-id: http://svn.telesphoreo.org/trunk@652 514c082c-b64e-11dc-b46d-3d985efe055d
Diffstat (limited to 'arch')
-rw-r--r--arch/iphoneos-arm/strip3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/iphoneos-arm/strip b/arch/iphoneos-arm/strip
index 0c0fad136..5eb943311 100644
--- a/arch/iphoneos-arm/strip
+++ b/arch/iphoneos-arm/strip
@@ -11,6 +11,9 @@ find "${PKG_DEST}" -type f \( -perm -0100 -o -name '*.dylib' -o -name '*.so' \)
if grep $'\xfa\xde\x0c\x01' "${bin}" &>/dev/null; then
continue; fi
+ perms=$(stat --format=%a "${bin}")
+ chmod 755 "${bin}"
"${PKG_BASE}/util/ldid" -S "${bin}"
#"${PKG_BASE}/arch/iphoneos-arm/entitlement.xml" "${bin}"
+ chmod "${perms}" "${bin}"
done