Use dcp::file_to_string().
[dcpomatic.git] / src / lib / ext.cc
index b7481e293eae818d152ea9b9da1ec2b51b8ff9be..feba68c1f6eec9c15951b1fa70cf010b6843fafd 100644 (file)
@@ -221,7 +221,6 @@ copy (boost::filesystem::path from, boost::filesystem::path to, uint64_t& total_
 {
        LOG_DISK ("Copy %1 -> %2", from.string(), to.generic_string());
        from = fix_long_path (from);
-       to = fix_long_path (to);
 
        using namespace boost::filesystem;
 
@@ -305,10 +304,6 @@ try
        parts.division[2] = 0;
        parts.division[3] = 0;
 
-#ifdef DCPOMATIC_LINUX
-       PrivilegeEscalator e;
-#endif
-
        /* XXX: not sure if disk_id matters */
        int r = ext4_mbr_write (bd, &parts, 0);
        if (r) {