1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-25 06:04:04 +03:00

s3/modules: Add flag indicating if connected share is a dfs share

Not used yet, will be used in the next commit to avoid testing
if the connected share is a dfs one.

Pair-Programmed-With: Jeremy Alison <jra@samba.org>
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15435

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit 2668dcd0968133cca4f8410bf8c41ed0483f5d87)
This commit is contained in:
Noel Power 2023-07-27 17:36:29 +01:00 committed by Jule Anger
parent 5db858c1af
commit e949750d4f

View File

@ -106,6 +106,7 @@
struct widelinks_config { struct widelinks_config {
bool active; bool active;
bool is_dfs_share;
char *cwd; char *cwd;
}; };
@ -134,7 +135,8 @@ static int widelinks_connect(struct vfs_handle_struct *handle,
DBG_ERR("vfs_widelinks module loaded with " DBG_ERR("vfs_widelinks module loaded with "
"widelinks = no\n"); "widelinks = no\n");
} }
config->is_dfs_share =
(lp_host_msdfs() && lp_msdfs_root(SNUM(handle->conn)));
SMB_VFS_HANDLE_SET_DATA(handle, SMB_VFS_HANDLE_SET_DATA(handle,
config, config,
NULL, /* free_fn */ NULL, /* free_fn */