hdiutil escaping error

Originator:kuehn.karl
Number:rdar://7527256 Date Originated:12/9/2010
Status:Open Resolved:
Product:Mac OS X Product Version:10.6.2
Classification:Other Bug Reproducible:Always
 
09-Jan-2010 07:53 PM Karl Kuehn:
Summary: 
	It seems that there is a path escaping problem in the hdiutil command. Things are making it though the process, but a warning message does come up, and looks bad.

Steps to Reproduce:
	1) Insert a MacOS X installer DVD on a 10.6.2 computer. This will probably work with any image with spaces in the name, but the installer disks all are named "Mac OS X Install DVD"

	2) get to a root prompt ('sudo -s' is sufficient).. this is probably not necessary, but is good practice

	3) run the command: hdiutil create -srcfolder /Volumes/Mac\ OS\ X\ Install\ DVD -format UDZO -imagekey zlib-level=6 /tmp/output.dmg

Expected Results:
	I expect a dmg to be created at /tmp/output.dmg and there not to be any errors.

Actual Results:
	The image is created (and seems fine... it checksums correctly), but the following message appears:

<!--------------Start included message-------------->
detachTempimageFile: synchronous unmount /dev/disk2 returned 49153
lsof: status error on /Volumes/Mac: No such file or directory
lsof: status error on OS: No such file or directory
lsof: status error on X: No such file or directory
lsof: status error on Install: No such file or directory
lsof: status error on DVD: No such file or directory
lsof: status error on 1: No such file or directory
lsof 4.82
 latest revision: ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/
 latest FAQ: ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/FAQ
 latest man page: ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/lsof_man
 usage: [-?abhlnNoOPRtUvV] [+|-c c] [+|-d s] [+D D] [+|-f[cgG]]
 [-F [f]] [-g [s]] [-i [i]] [+|-L [l]] [+|-M] [-o [o]] [-p s]
[+|-r [t]] [-s [p:s]] [-S [t]] [-T [t]] [-u s] [+|-w] [-x [fl]] [--] [names]
Use the ``-h'' option to get more help information.
retrying unmount (#1)...
detachTempImageFile: synchronous retry (#1) unmount /Volumes/Mac OS X Install DVD 1 (/dev/disk2) returned 0
<!--------------End included message-------------->

Regression:
	Unknown.

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!