selftest: add "fruit:veto_appledouble = no" to fruit shares
authorRalph Boehme <slow@samba.org>
Fri, 17 Nov 2017 12:52:25 +0000 (13:52 +0100)
committerJeremy Allison <jra@samba.org>
Wed, 29 Nov 2017 03:35:24 +0000 (04:35 +0100)
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 <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
selftest/target/Samba3.pm
source4/torture/vfs/fruit.c

index f0e6a63175dfbdc6d1d1ff73190d060d00b6ee2a..afbc795fead81172e211234dc11e263881fa9073 100755 (executable)
@@ -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
index 471a755a40d3f75f7509224be869c3060812aacf..0b7f897b4ee6ea3e7e0f7e6a133c5f94966a5803 100644 (file)
@@ -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;
        }