From 3a2624191678d437f4013126661ff5c84961cebb Mon Sep 17 00:00:00 2001 From: Jay Freeman Date: Sun, 9 Aug 2009 09:49:24 +0000 Subject: Backup/restore permissions during ldid. git-svn-id: http://svn.telesphoreo.org/trunk@652 514c082c-b64e-11dc-b46d-3d985efe055d --- arch/iphoneos-arm/strip | 3 +++ 1 file changed, 3 insertions(+) (limited to 'arch') 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 -- cgit v1.2.3