s3/modules: Add flag indicating if connected share is a dfs share
authorNoel Power <noel.power@suse.com>
Thu, 27 Jul 2023 16:36:29 +0000 (17:36 +0100)
committerJeremy Allison <jra@samba.org>
Fri, 28 Jul 2023 23:50:32 +0000 (23:50 +0000)
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>
source3/modules/vfs_widelinks.c

index 0045242ba8151fb22e6e0daed309b7689d2d5fea..d53122b0b9593a8c42aab3871c0e22c37b073ed5 100644 (file)
 
 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 */