s3:vfs:shadow_copy2: Fix shadow-copy module for drag&drop from a snapshot
commit1c1a8420712a767df80a15e4b6fc9caa6027f145
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 09:10:03 +0000 (21 10:10 +0100)
tree93d111769d403ee7234566bea527af3b3bdf0be3
parentd49d2032794c15c797d719eee102e3ba583013e3
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