Further sanity check fixes.
[dcpomatic.git] / src / tools / dcpomatic_disk_writer.cc
index e63a7a7a9d35bbb97a21644ef3037aba053370b8..b8255468f78ab827a86d965e7ab358dfd4f63f40 100644 (file)
@@ -439,7 +439,7 @@ try
                /* Do some basic sanity checks; this is a bit belt-and-braces but it can't hurt... */
 
 #ifdef DCPOMATIC_OSX
-               if (!starts_with(*device, "/dev/disk")) {
+               if (!starts_with(*device, "/dev/rdisk")) {
                        LOG_DISK ("Will not write to %1", *device);
                        nanomsg->send(DISK_WRITER_ERROR "\nRefusing to write to this drive\n1\n", LONG_TIMEOUT);
                        return true;
@@ -463,7 +463,7 @@ try
                bool on_drive_list = false;
                bool mounted = false;
                for (auto const& i: Drive::get()) {
-                       if (i.device() == *device) {
+                       if (i.device_for_write() == *device) {
                                on_drive_list = true;
                                mounted = i.mounted();
                        }