as a special case don't check the status of the create of \clients -
authorAndrew Tridgell <tridge@samba.org>
Wed, 10 Mar 2004 07:38:47 +0000 (07:38 +0000)
committerAndrew Tridgell <tridge@samba.org>
Wed, 10 Mar 2004 07:38:47 +0000 (07:38 +0000)
there is a race condition in the create
(This used to be commit ddfddcbffd304b5ac51140dee048ead7137e293a)

source4/torture/nbench/nbio.c

index 8a9c36f1d0df3cd0884ae40070b4dbff86e6233b..d42f7194730e5bf529c402c56e30f9c3bd0924a0 100644 (file)
@@ -215,7 +215,9 @@ void nb_createx(const char *fname,
 
        talloc_destroy(mem_ctx);
 
-       check_status("NTCreateX", status, ret);
+       if (strcmp(fname, "\\clients") != 0) {
+               check_status("NTCreateX", status, ret);
+       }
 
        if (!NT_STATUS_IS_OK(ret)) return;