]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
test: Fix fruit test for local netatalk interop
authorVolker Lendecke <vl@samba.org>
Thu, 4 Sep 2025 07:45:32 +0000 (09:45 +0200)
committerRalph Boehme <slow@samba.org>
Tue, 21 Oct 2025 17:33:28 +0000 (17:33 +0000)
streams_xattr always appends a '\0'. We'll start to add meaning to
that byte and check it soon, so make the hand-crafted stream follow
that convention.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source4/torture/vfs/fruit.c

index 71e7eedfdbd1c42aa7d32e835ea031c9949c0ec2..02a7be68d85da8f275973584ffd94b144ac69ca0 100644 (file)
@@ -8121,7 +8121,7 @@ static bool test_stream_names_local(struct torture_context *tctx,
 
        ret = torture_setup_local_xattr(tctx, "localdir", BASEDIR "/stream_names.txt",
                                        "user.DosStream.bar:baz:$DATA",
-                                       "data", strlen("data"));
+                                       "data", strlen("data")+1);
        CHECK_VALUE(ret, true);
 
        ret = check_stream_list(tree, tctx, fname, 3, streams, false);