1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-24 13:57:43 +03:00

shadow_copy2: disable "snapdir:crossmountpoints" if the snapdir is absolute.

Signed-off-by: Michael Adam <obnox@samba.org>

Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Michael Adam 2013-05-30 13:19:50 +02:00 committed by Andrew Bartlett
parent 843954989c
commit 1e887fcda0

View File

@ -1654,6 +1654,13 @@ static int shadow_copy2_connect(struct vfs_handle_struct *handle,
"setting 'snapdirseverywhere' to false.\n"));
config->snapdirseverywhere = false;
}
if (config->crossmountpoints == true) {
DEBUG(1, (__location__ " Warning: 'crossmountpoints' "
"is not supported with an absolute snapdir. "
"Disabling it.\n"));
config->crossmountpoints = false;
}
}
SMB_VFS_HANDLE_SET_DATA(handle, config,