s3:vfs:shadow_copy2: Fix shadow-copy module for drag&drop from a snapshot
commit091f5b199ec145561ee5840903c73a26d14e3319
authorVolker Lendecke <vl@samba.org>
Thu, 16 Dec 2010 11:26:02 +0000 (16 04:26 -0700)
committerMichael Adam <obnox@samba.org>
Fri, 21 Jan 2011 11:23:25 +0000 (21 12:23 +0100)
tree603bb96b478555a16e174128b05f286cfebe78b0
parent05e0002b9d2140a57f8edb2c9341ec62b5e19999
s3:vfs:shadow_copy2: Fix shadow-copy module for drag&drop from a snapshot

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.
source3/modules/vfs_shadow_copy2.c