Make cli_unlink async.
[kai/samba.git] / source3 / torture / nbio.c
index 7503e59357a619152b69cd6184be8ebf0d324d68..1542a8ffb47389664016436678f866ac2a1c9460 100644 (file)
@@ -128,7 +128,7 @@ void nb_setup(struct cli_state *cli)
 
 void nb_unlink(const char *fname)
 {
-       if (!cli_unlink(c, fname)) {
+       if (!NT_STATUS_IS_OK(cli_unlink(c, fname, aSYSTEM | aHIDDEN))) {
 #if NBDEBUG
                printf("(%d) unlink %s failed (%s)\n", 
                       line_count, fname, cli_errstr(c));