diff options
author | monojenkins <jo.shields+jenkins@xamarin.com> | 2018-09-12 20:56:56 +0300 |
---|---|---|
committer | Ludovic Henry <luhenry@microsoft.com> | 2018-09-12 20:56:56 +0300 |
commit | e6e4f154742e038a4d4e3870acac854e3cc254f8 (patch) | |
tree | 41be3e5b23583c3e961256f3b1811b57cc1fd2cc | |
parent | 89cabf420567c8495d31e563458e838173a2d283 (diff) |
Treat EXDEV from clonefile the same way as ENOTSUP. (#10530)
Backport of #10528.
/cc @akoeplinger
-rw-r--r-- | mono/metadata/w32file-unix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mono/metadata/w32file-unix.c b/mono/metadata/w32file-unix.c index fbe918fffda..1c95eda0a93 100644 --- a/mono/metadata/w32file-unix.c +++ b/mono/metadata/w32file-unix.c @@ -2480,7 +2480,7 @@ CopyFile (const gunichar2 *name, const gunichar2 *dest_name, gboolean fail_if_ex #if HOST_DARWIN if (clonefile_ptr != NULL) { ret = _wapi_clonefile (utf8_src, utf8_dest, 0); - if (ret == 0 || errno != ENOTSUP) { + if (ret == 0 || (errno != ENOTSUP && errno != EXDEV)) { g_free (utf8_src); g_free (utf8_dest); MONO_ENTER_GC_SAFE; |