vfs_shadow_copy2: fix case where snapshots are outside the share
authorUri Simchoni <uri@samba.org>
Mon, 2 Nov 2015 07:08:53 +0000 (09:08 +0200)
committerMichael Adam <obnox@samba.org>
Wed, 13 Jan 2016 13:03:15 +0000 (14:03 +0100)
commit8a49a63a5a5d8014d32179df1789186223443b35
tree049acfbba767b458a64592a80d1397b4d616edb0
parent3703bca4d9e494aec0b40243add3e076cf353601
vfs_shadow_copy2: fix case where snapshots are outside the share

Adjust the connect path to the root of the share in the snapshot,
or to the root of the snapshot if the snapshot is "inside" the
share.

This way snapshot symlink regarded as "wide links" if and only if
they point outside the snapshot or they were wide links when
the snapshot was taken.

This allows mounting the snapshots outside the share's root.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=11580

Signed-off-by: Uri Simchoni <uri@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
source3/modules/vfs_shadow_copy2.c