From: Noel Power Date: Thu, 27 Jul 2023 16:36:29 +0000 (+0100) Subject: s3/modules: Add flag indicating if connected share is a dfs share X-Git-Tag: samba-4.18.6~29 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e949750d4f533d0c2a04ada4a02236f1b012107a;p=thirdparty%2Fsamba.git 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 BUG: https://bugzilla.samba.org/show_bug.cgi?id=15435 Signed-off-by: Noel Power Reviewed-by: Jeremy Allison (cherry picked from commit 2668dcd0968133cca4f8410bf8c41ed0483f5d87) --- diff --git a/source3/modules/vfs_widelinks.c b/source3/modules/vfs_widelinks.c index 2a35ea5eb68..a86f62572ac 100644 --- a/source3/modules/vfs_widelinks.c +++ b/source3/modules/vfs_widelinks.c @@ -106,6 +106,7 @@ struct widelinks_config { bool active; + bool is_dfs_share; char *cwd; }; @@ -134,7 +135,8 @@ static int widelinks_connect(struct vfs_handle_struct *handle, DBG_ERR("vfs_widelinks module loaded with " "widelinks = no\n"); } - + config->is_dfs_share = + (lp_host_msdfs() && lp_msdfs_root(SNUM(handle->conn))); SMB_VFS_HANDLE_SET_DATA(handle, config, NULL, /* free_fn */