• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
[Bug?] iTunes 10 distribution script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug?] iTunes 10 distribution script


  • Subject: [Bug?] iTunes 10 distribution script
  • From: Stephane Sudre <email@hidden>
  • Date: Thu, 2 Sep 2010 11:25:34 +0200

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/Reference/InstallerJavaScriptRef/system/system.html#//apple_ref/javascript/instm/System/run),
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      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: iPhone-Simulator installer bug
  • Next by Date: Re: iPhone-Simulator installer bug
  • Previous by thread: Re: iPhone-Simulator installer bug
  • Next by thread: Order with installationcheck and volumecheck
  • Index(es):
    • Date
    • Thread