productbuild: Clobbers product-output-path argument if it's a directory
| Originator: | j.a.grigutis | ||
| Number: | rdar://13153602 | Date Originated: | 05-Feb-2013 12:58 PM |
| Status: | Duplicate/12314950 | Resolved: | 15-Feb-2013 07:09 PM |
| Product: | Developer Tools | Product Version: | ??? |
| Classification: | Crash/Hang/Data Loss | Reproducible: | Always |
Summary: Specifying a directory for the product-output-path argument results in an error and either the directory being deleted or the entire contents of the directory deleted. Steps to Reproduce: productbuild --root /Users/username/Desktop/buildproducts/ / ~/Desktop/ Expected Results: The package would be created in the product-output-path directory with a default filename or some error would be displayed otherwise. Actual Results: productbuild: error: Cannot write product to "/Users/username/Desktop/". (The operation couldn’t be completed. Bad file descriptor) At this point, /Users/username/Desktop/ is empty. Regression: Notes:
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!