diff options
Diffstat (limited to 'source3/script/tests/selftest.sh')
-rwxr-xr-x | source3/script/tests/selftest.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/source3/script/tests/selftest.sh b/source3/script/tests/selftest.sh index a13877ddc9..2248ecf5b0 100755 --- a/source3/script/tests/selftest.sh +++ b/source3/script/tests/selftest.sh @@ -190,6 +190,20 @@ mkdir -p $RO_SHRDIR chmod 755 $RO_SHRDIR touch $RO_SHRDIR/unreadable_file chmod 600 $RO_SHRDIR/unreadable_file +## +## Create an MS-DFS root share. +## +MSDFS_SHRDIR=`echo $SHRDIR | sed -e 's:/[^/]*$::'` +MSDFS_SHRDIR=$MSDFS_SHRDIR/msdfsshare +mkdir -p $MSDFS_SHRDIR +chmod 777 $MSDFS_SHRDIR +mkdir -p $MSDFS_SHRDIR/deeppath +chmod 777 $MSDFS_SHRDIR/deeppath +## Create something visible in the target. +touch $RO_SHRDIR/msdfs-target +chmod 666 $RO_SHRDIR/msdfs-target +ln -s msdfs:$SERVER_IP\\ro-tmp $MSDFS_SHRDIR/msdfs-src1 +ln -s msdfs:$SERVER_IP\\ro-tmp $MSDFS_SHRDIR/deeppath/msdfs-src2 ## ## Create the common config include file with the basic settings @@ -325,6 +339,10 @@ cat >$SERVERCONFFILE<<EOF [ro-tmp] path = $RO_SHRDIR guest ok = yes +[msdfs-share] + path = $MSDFS_SHRDIR + msdfs root = yes + guest ok = yes [hideunread] copy = tmp hide unreadable = yes |