]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
test: Fix shadow copy streams xattr test
authorVolker Lendecke <vl@samba.org>
Wed, 3 Sep 2025 09:46:49 +0000 (11:46 +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>
source3/script/tests/test_shadow_copy_torture.sh

index 3a6ba91d0752b0e52247b6b81b3b0042bacbdcec..68157aa697626ec61cca464f176c410eff5daae4 100755 (executable)
@@ -60,7 +60,7 @@ build_stream_on_snapshot()
 {
        file=$WORKDIR/.snapshots/$SNAPSHOT/foo
 
-       setfattr -n 'user.DosStream.bar:$DATA' -v baz $file || return 1
+       setfattr -n 'user.DosStream.bar:$DATA' -v "baz\00" $file || return 1
 }
 
 test_shadow_copy_write()