diff options
author | Stefan Metzmacher <metze@samba.org> | 2019-07-30 17:16:59 +0200 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2019-08-27 13:16:24 +0200 |
commit | d1d48f20a25867e65f064f2c157222cdcb74658b (patch) | |
tree | 8f130fb8a9c7f1dbdf1d3ac1730f737de0ce13cd /selftest | |
parent | 0af5d11c762ee623f4c656897ed196722ed8d626 (diff) | |
download | samba-d1d48f20a25867e65f064f2c157222cdcb74658b.tar.gz |
CVE-2019-10197: selftest: make fsrvp_share its own independent subdirectory
The next patch will otherwise break the fsrvp related tests.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14035
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'selftest')
-rwxr-xr-x | selftest/target/Samba3.pm | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/selftest/target/Samba3.pm b/selftest/target/Samba3.pm index 9d88253c9fe..f7eb314138a 100755 --- a/selftest/target/Samba3.pm +++ b/selftest/target/Samba3.pm @@ -1540,6 +1540,9 @@ sub provision($$$$$$$$$) my $widelinks_linkdir="$shrdir/widelinks_foo"; push(@dirs,$widelinks_linkdir); + my $fsrvp_shrdir="$shrdir/fsrvp"; + push(@dirs,$fsrvp_shrdir); + my $shadow_tstdir="$shrdir/shadow"; push(@dirs,$shadow_tstdir); my $shadow_mntdir="$shadow_tstdir/mount"; @@ -2083,14 +2086,14 @@ sub provision($$$$$$$$$) guest ok = yes [fsrvp_share] - path = $shrdir + path = $fsrvp_shrdir comment = fake shapshots using rsync vfs objects = shell_snap shadow_copy2 shell_snap:check path command = $fake_snap_pl --check shell_snap:create command = $fake_snap_pl --create shell_snap:delete command = $fake_snap_pl --delete # a relative path here fails, the snapshot dir is no longer found - shadow:snapdir = $shrdir/.snapshots + shadow:snapdir = $fsrvp_shrdir/.snapshots [shadow1] path = $shadow_shrdir |