Fix the mangle1 test
authorVolker Lendecke <vl@samba.org>
Sat, 9 May 2009 11:46:08 +0000 (13:46 +0200)
committerVolker Lendecke <vl@samba.org>
Sat, 9 May 2009 12:09:42 +0000 (14:09 +0200)
source3/torture/torture.c

index 1d463467517adc8a09a5673b80e8cd3cce935c8f..53a39c6999a774a88348bf6886d45c9197114f4f 100644 (file)
@@ -5065,7 +5065,7 @@ static bool run_mangle1(int dummy)
 
        cli_sockopt(cli, sockops);
 
 
        cli_sockopt(cli, sockops);
 
-       if (NT_STATUS_IS_OK(cli_ntcreate(
+       if (!NT_STATUS_IS_OK(cli_ntcreate(
                        cli, fname, 0, GENERIC_ALL_ACCESS|DELETE_ACCESS,
                        FILE_ATTRIBUTE_NORMAL, 0, FILE_OVERWRITE_IF, 0, 0, &fnum))) {
                d_printf("open %s failed: %s\n", fname, cli_errstr(cli));
                        cli, fname, 0, GENERIC_ALL_ACCESS|DELETE_ACCESS,
                        FILE_ATTRIBUTE_NORMAL, 0, FILE_OVERWRITE_IF, 0, 0, &fnum))) {
                d_printf("open %s failed: %s\n", fname, cli_errstr(cli));