We have to return NT_STATUS_NOT_SAME_DEVICE to trigger the Windows client to
start a copy itself. Unbeknownst to us via the ACLs snapshots are read-only, so
a rename would trigger a EACCES. Unfortunately the MacOS/X finder does not do
the smart NOT_SAME_DEVICE fallback that Windows does.
static int shadow_copy2_rename(vfs_handle_struct *handle,
const char *oldname, const char *newname)
{
+ if (shadow_copy2_match_name(oldname, NULL)) {
+ errno = EXDEV;
+ return -1;
+ }
SHADOW2_NEXT2(RENAME, (handle, oldname, newname));
}