diff options
author | Jeremy Allison <jra@samba.org> | 2015-05-01 21:08:21 -0700 |
---|---|---|
committer | Ralph Böhme <slow@samba.org> | 2015-05-05 16:37:18 +0200 |
commit | 9928d9832cccb11c4a605c5ce31be3af961c141f (patch) | |
tree | 74f853611662a4ed22f8cd78233b0cce5ce4dfa9 /selftest | |
parent | 0f23bf228ceb38b024a77fcf2916971ad4f6aa4d (diff) | |
download | samba-9928d9832cccb11c4a605c5ce31be3af961c141f.tar.gz |
s3: torture: Add regression test for bug #11249.
Bug 11249 - Mangled names do not work with acl_xattr
BUG: https://bugzilla.samba.org/show_bug.cgi?id=11249
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Tue May 5 16:37:18 CEST 2015 on sn-devel-104
Diffstat (limited to 'selftest')
-rwxr-xr-x | selftest/target/Samba3.pm | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/selftest/target/Samba3.pm b/selftest/target/Samba3.pm index 758ca6bc0e5..bc52263809b 100755 --- a/selftest/target/Samba3.pm +++ b/selftest/target/Samba3.pm @@ -980,6 +980,9 @@ sub provision($$$$$$$$) my $lease2_shrdir="$shrdir/SMB3_00"; push(@dirs,$lease2_shrdir); + my $manglenames_shrdir="$shrdir/manglenames"; + push(@dirs,$manglenames_shrdir); + # this gets autocreated by winbindd my $wbsockdir="$prefix_abs/winbindd"; my $wbsockprivdir="$lockdir/winbindd_privileged"; @@ -1063,6 +1066,12 @@ sub provision($$$$$$$$) close(BADNAME_TARGET); chmod 0666, $badname_target; + ## + ## create mangleable directory names in $manglenames_shrdir + ## + my $manglename_target = "$manglenames_shrdir/foo:bar"; + mkdir($manglename_target, 0777); + my $conffile="$libdir/server.conf"; my $nss_wrapper_pl = "$ENV{PERL} $self->{srcdir}/lib/nss_wrapper/nss_wrapper.pl"; @@ -1338,6 +1347,10 @@ sub provision($$$$$$$$) path = $badnames_shrdir guest ok = yes +[manglenames_share] + path = $manglenames_shrdir + guest ok = yes + [dynamic_share] path = $shrdir/%R guest ok = yes |