[Bug?] iTunes 10 distribution script
site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=VI/EgYb1TKcUbtVuRTpWXtxIidLOstca7kTc+WskFsg=; b=Bmz32oowUlKgsjV0CKAh2GXQYbQHm/2o0fzokZO/9drAO/ZNlZu6/XRWlwjP0qUtI3 JnTk3SZPsnsOMWnwMFKYfPR2303TCX5qugCMoKMhzjVfajJuZWkUx8BuoPQ1XKOhKZSy iL2oGYu9rUW3jk9xD12KwBEBbla9h/bqWhoIk= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=iLAtew71CS5r7L5ogwmbKna0n1LVHTyJUQ3rqEKC/1YOTlCYbfi9dM+5lPG04U/29m 63oIA61e5MB9OCZoEQaU9LrnwfPBOW5tNxcxVUq/6hj8xlf6MN4j4PbtPKQfXqU/ZpNT rJzmeb9xFa8g6HdjHizUw7TVGwSWNEI6GrGCI= I might be missing something but is there a back door in Installer.app for Apple regarding the system.run function? In iTunes 10 distribution script, the following code is used: function installMobilitySupport() { var res = system.run("/usr/bin/defaults", "read", "com.apple.iTunes", "disableAMDSInstall",my.target.mountpoint); if( res == 0 ){ return false; } return true; } <choice id='A' enabled='installMobilitySupport()' selected='installMobilitySupport()' title='T_MOBILE' versStr='V_MOBILE' description='D_MOBILE'> <pkg-ref id='com.apple.pkg.AppleMobileDeviceSupport' auth='Root' >#AppleMobileDeviceSupport.pkg</pkg-ref> </choice> but allow-external-scripts is not set in the script. So according to the documentation (http://developer.apple.com/mac/library/documentation/DeveloperTools/Referenc...), the result for system.run should be undefined as the command will not be executed. And 'undefined' is "probably" not 0, so the answer is always true. Bug ID# 8385710 _______________________________________________ Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/installer-dev/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com
participants (1)
-
Stephane Sudre