On 02/03/2016 08:54 AM, Programmingkid wrote: >> Oops, I shouldn't be writing emails late at night. Let's try this again.
>
> So you want this:
>
> #if defined(__APPLE__) && defined(__MACH__)
> if (*bsd_path) {
> filename = bsd_path;
> }
> /* if a physical device experienced an error while being opened */
> if (strncmp(filename, "/dev/", 5) == 0) {
> print_unmounting_directions(filename);
> return -1;
> }
> #endif /* defined(__APPLE__) && defined(__MACH__) */
Yes, that should work.
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
