From c75b6154e475a89c1a43b62c8d8324834397da69 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Sun, 19 Aug 2012 22:46:21 +1000 Subject: s4-torture: Show that we cannot list extended attributes on streams --- source4/torture/raw/streams.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'source4') diff --git a/source4/torture/raw/streams.c b/source4/torture/raw/streams.c index 593bbe2a94..1611c642b4 100644 --- a/source4/torture/raw/streams.c +++ b/source4/torture/raw/streams.c @@ -646,6 +646,7 @@ static bool test_stream_names(struct torture_context *tctx, { NTSTATUS status; union smb_open io; + union smb_fileinfo info; union smb_fileinfo finfo; union smb_fileinfo stinfo; union smb_setfileinfo sinfo; @@ -766,6 +767,16 @@ static bool test_stream_names(struct torture_context *tctx, status = smb_raw_setfileinfo(cli->tree, &sinfo); CHECK_STATUS(status, NT_STATUS_INVALID_PARAMETER); + status = torture_check_ea(cli, sname1, "STREAMEA", "EA_VALUE1"); + CHECK_STATUS(status, NT_STATUS_INVALID_PARAMETER); + + ZERO_STRUCT(info); + info.generic.level = RAW_FILEINFO_ALL_EAS; + info.all_eas.in.file.path = sname1; + + status = smb_raw_pathinfo(cli->tree, tctx, &info); + CHECK_STATUS(status, NT_STATUS_INVALID_PARAMETER); + /* * A different stream does not give a sharing violation */ -- cgit