Fix macOS sanity check.
authorCarl Hetherington <cth@carlh.net>
Tue, 28 Apr 2020 12:05:20 +0000 (14:05 +0200)
committerCarl Hetherington <cth@carlh.net>
Tue, 28 Apr 2020 12:05:20 +0000 (14:05 +0200)
src/tools/dcpomatic_disk_writer.cc

index e63a7a7a9d35bbb97a21644ef3037aba053370b8..3fabe3e28f8a90bb0b216351d490e8ace4650416 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;