summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-11-10 01:29:23 +0100
committerCarl Hetherington <cth@carlh.net>2025-11-10 01:29:23 +0100
commit52323f6a3343e4ad3f9058f07292d74d2de352f1 (patch)
treeef543f7c4bfd122f5e9f99db3ee0733870b4a4ea
parent06a52e28b747983c99211469bf13a7c19e9d1644 (diff)
Fall back to copy also on operation_not_supported.v1.10.39
I haven't seen this but it was reported, and it seems like a good reason to copy instead.
-rw-r--r--src/combine.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/combine.cc b/src/combine.cc
index 5930ff19..dfdf8b1b 100644
--- a/src/combine.cc
+++ b/src/combine.cc
@@ -89,7 +89,7 @@ create_hard_link_or_copy(boost::filesystem::path from, boost::filesystem::path t
try {
dcp::filesystem::create_hard_link(from, to);
} catch (boost::filesystem::filesystem_error& e) {
- if (e.code() == boost::system::errc::cross_device_link) {
+ if (e.code() == boost::system::errc::cross_device_link || e.code() == boost::system::errc::operation_not_supported) {
dcp::filesystem::copy_file(from, to);
} else {
throw;