]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
Add new dfs node msdfs-share pointing to new msdfs-share2
authorNoel Power <noel.power@suse.com>
Fri, 17 Jun 2022 09:15:42 +0000 (10:15 +0100)
committerJeremy Allison <jra@samba.org>
Fri, 17 Jun 2022 16:20:35 +0000 (16:20 +0000)
Also add another node within msdfs-share2 pointing to normal share

This patch is in preperation for creating a test for 'del' &
'deltree' on DFS shares. The extra redirection is necessary to
reproduce the bug

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

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
selftest/target/Samba3.pm

index c080c23f2ba8b89ced73d1f69f5d66a675c94c42..798796bc21fc01c0c4d42d7e6e7cfb1ce4ee83af 100755 (executable)
@@ -2519,6 +2519,9 @@ sub provision($$)
        my $msdfs_shrdir="$shrdir/msdfsshare";
        push(@dirs,$msdfs_shrdir);
 
+       my $msdfs_shrdir2="$shrdir/msdfsshare2";
+       push(@dirs,$msdfs_shrdir2);
+
        my $msdfs_deeppath="$msdfs_shrdir/deeppath";
        push(@dirs,$msdfs_deeppath);
 
@@ -2612,6 +2615,8 @@ sub provision($$)
        symlink "msdfs:$server_ip\\smbcacls_sharedir_dfs,$server_ipv6\\smbcacls_sharedir_dfs",
                "$msdfs_shrdir/smbcacls_sharedir_dfs";
 
+       symlink "msdfs:$server_ip\\msdfs-share2,$server_ipv6\\msdfs-share2", "$msdfs_shrdir/dfshop1";
+       symlink "msdfs:$server_ip\\tmp,$server_ipv6\\tmp", "$msdfs_shrdir2/dfshop2";
        ##
        ## create bad names in $badnames_shrdir
        ##
@@ -2935,6 +2940,10 @@ sub provision($$)
        msdfs root = yes
        msdfs shuffle referrals = yes
        guest ok = yes
+[msdfs-share2]
+       path = $msdfs_shrdir2
+       msdfs root = yes
+       guest ok = yes
 [hideunread]
        copy = tmp
        hide unreadable = yes