summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-08-19 22:46:21 +1000
committerAndrew Bartlett <abartlet@samba.org>2012-08-20 21:58:08 +1000
commitc75b6154e475a89c1a43b62c8d8324834397da69 (patch)
tree1d410a0e87a5796bf3d75750e39e4ec1e776875f
parentf9837d15f30c88cc4dca19e3a54433302c11b9ae (diff)
downloadsamba-c75b6154e475a89c1a43b62c8d8324834397da69.tar.gz
samba-c75b6154e475a89c1a43b62c8d8324834397da69.tar.bz2
samba-c75b6154e475a89c1a43b62c8d8324834397da69.zip
s4-torture: Show that we cannot list extended attributes on streams
-rw-r--r--source4/torture/raw/streams.c11
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
*/