Change RAW-STREAMS for s3 to allow rename over an existing stream,
authorJeremy Allison <jra@samba.org>
Thu, 29 Oct 2009 23:38:34 +0000 (16:38 -0700)
committerJeremy Allison <jra@samba.org>
Thu, 29 Oct 2009 23:38:34 +0000 (16:38 -0700)
we need to file a CAR to find out why Windows gives INVALID_PARAMETER
for this.
Jeremy.

source4/torture/raw/streams.c

index 5d2fb55ced19d458e3a7930667b6a09fd298133e..5c346f6de9d5b4bb4e275ec29acbff8f3b74303a 100644 (file)
@@ -936,7 +936,8 @@ static bool test_stream_names(struct torture_context *tctx,
        sinfo.rename_information.in.root_fid = 0;
        sinfo.rename_information.in.new_name = ":MStream Two:$DATA";
        status = smb_raw_setfileinfo(cli->tree, &sinfo);
-       if (torture_setting_bool(tctx, "samba4", false)) {
+       if (torture_setting_bool(tctx, "samba4", false) ||
+           torture_setting_bool(tctx, "samba3", false)) {
                /* why should this rename be considered invalid?? */
                CHECK_STATUS(status, NT_STATUS_OK);
                ret &= check_stream_list(cli, fname, 4, four);