1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-22 02:50:28 +03:00

s4-torture: Show that we cannot list extended attributes on streams

This commit is contained in:
Andrew Bartlett 2012-08-19 22:46:21 +10:00
parent f9837d15f3
commit c75b6154e4

View File

@ -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
*/