From: Ralph Boehme Date: Fri, 17 Nov 2017 12:52:25 +0000 (+0100) Subject: selftest: add "fruit:veto_appledouble = no" to fruit shares X-Git-Tag: talloc-2.1.11~342 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3f9b45a410384904d64bdd0d68ff2a5bc25bd3e9;p=thirdparty%2Fsamba.git selftest: add "fruit:veto_appledouble = no" to fruit shares This is needed for a subsequent commit that modifies an existing test to write a ._ file over SMB instead of using the ugly local creation hack. SMB acces of ._ files requires "fruit:veto_appledouble = no", so let's set it. Bug: https://bugzilla.samba.org/show_bug.cgi?id=13155 Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- diff --git a/selftest/target/Samba3.pm b/selftest/target/Samba3.pm index f0e6a63175d..afbc795fead 100755 --- a/selftest/target/Samba3.pm +++ b/selftest/target/Samba3.pm @@ -1926,18 +1926,21 @@ sub provision($$$$$$$$$) fruit:metadata = netatalk fruit:locking = netatalk fruit:encoding = native + fruit:veto_appledouble = no [vfs_fruit_metadata_stream] path = $shrdir vfs objects = fruit streams_xattr acl_xattr fruit:resource = file fruit:metadata = stream + fruit:veto_appledouble = no [vfs_fruit_stream_depot] path = $shrdir vfs objects = fruit streams_depot acl_xattr fruit:resource = stream fruit:metadata = stream + fruit:veto_appledouble = no [vfs_wo_fruit] path = $shrdir diff --git a/source4/torture/vfs/fruit.c b/source4/torture/vfs/fruit.c index 471a755a40d..0b7f897b4ee 100644 --- a/source4/torture/vfs/fruit.c +++ b/source4/torture/vfs/fruit.c @@ -4015,6 +4015,9 @@ static bool test_readdir_attr_illegal_ntfs(struct torture_context *tctx, if (!strcmp(found, ".") || !strcmp(found, "..")) continue; + if (strncmp(found, "._", 2) == 0) { + continue; + } break; }