stderr != failure
Emitting a message on stderr is not necessarily an indication of failure. If you are actually running /usr/bin/hdiutil with system() or some other sort of callout, then the right check for success or failure would be the return code, not whether stderr gets some text. I can't speak to all cases, but at least in my case hdiutil emits a message on stderr even as the 'attach' actually succeeds (a disk device node is created) and hdiutil returns a zero (success) return code.
|