diff options
-rw-r--r-- | source4/torture/raw/streams.c | 11 |
1 files changed, 11 insertions, 0 deletions
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 */ |