s4-torture: Show that we cannot list extended attributes on streams
authorAndrew Bartlett <abartlet@samba.org>
Sun, 19 Aug 2012 12:46:21 +0000 (22:46 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 20 Aug 2012 11:58:08 +0000 (21:58 +1000)
source4/torture/raw/streams.c

index 593bbe2a942decc2e09f9b284d0b7986d62439cd..1611c642b48c57ba9694145ee44e2d06b42dae69 100644 (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
         */