Line
Link Here
|
0 |
-- a/src/rime/lever/deployment_tasks.cc |
0 |
++ b/src/rime/lever/deployment_tasks.cc |
Lines 577-583
Link Here
|
577 |
continue; |
577 |
continue; |
578 |
} |
578 |
} |
579 |
boost::system::error_code ec; |
579 |
boost::system::error_code ec; |
580 |
fs::copy_file(entry, backup, fs::copy_option::overwrite_if_exists, ec); |
580 |
fs::copy_file(entry, backup, fs::copy_options::overwrite_existing, ec); |
581 |
if (ec) { |
581 |
if (ec) { |
582 |
LOG(ERROR) << "error backing up file " << backup.string(); |
582 |
LOG(ERROR) << "error backing up file " << backup.string(); |
583 |
++failure; |
583 |
++failure; |
584 |
-- a/src/rime/lever/customizer.cc |
584 |
++ b/src/rime/lever/customizer.cc |
Lines 94-100
Link Here
|
94 |
if (redistribute || (is_dirty && !missing_original_copy)) { |
94 |
if (redistribute || (is_dirty && !missing_original_copy)) { |
95 |
try { |
95 |
try { |
96 |
fs::copy_file(source_path_, dest_path_, |
96 |
fs::copy_file(source_path_, dest_path_, |
97 |
fs::copy_option::overwrite_if_exists); |
97 |
fs::copy_options::overwrite_existing); |
98 |
} |
98 |
} |
99 |
catch (...) { |
99 |
catch (...) { |
100 |
LOG(ERROR) << "Error copying config file '" |
100 |
LOG(ERROR) << "Error copying config file '" |