From 370e7209dbafce147a5e9f283d9dcc53c72bce99 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 29 Apr 2009 18:26:02 -0700 Subject: Make cli_unlink async. Jeremy. --- source3/torture/mangle_test.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'source3/torture/mangle_test.c') diff --git a/source3/torture/mangle_test.c b/source3/torture/mangle_test.c index 81bdbce04d..e4468945c1 100644 --- a/source3/torture/mangle_test.c +++ b/source3/torture/mangle_test.c @@ -56,7 +56,7 @@ static bool test_one(struct cli_state *cli, const char *name) } fstr_sprintf(name2, "\\mangle_test\\%s", shortname); - if (!cli_unlink(cli, name2)) { + if (!NT_STATUS_IS_OK(cli_unlink(cli, name2, aSYSTEM | aHIDDEN))) { printf("unlink of %s (%s) failed (%s)\n", name2, name, cli_errstr(cli)); return False; @@ -74,11 +74,11 @@ static bool test_one(struct cli_state *cli, const char *name) } /* and unlink by long name */ - if (!cli_unlink(cli, name)) { + if (!NT_STATUS_IS_OK(cli_unlink(cli, name, aSYSTEM | aHIDDEN))) { printf("unlink2 of %s (%s) failed (%s)\n", name, name2, cli_errstr(cli)); failures++; - cli_unlink(cli, name2); + cli_unlink(cli, name2, aSYSTEM | aHIDDEN); return True; } @@ -177,7 +177,7 @@ bool torture_mangle(int dummy) return False; } - cli_unlink(cli, "\\mangle_test\\*"); + cli_unlink(cli, "\\mangle_test\\*", aSYSTEM | aHIDDEN); cli_rmdir(cli, "\\mangle_test"); if (!NT_STATUS_IS_OK(cli_mkdir(cli, "\\mangle_test"))) { @@ -201,7 +201,7 @@ bool torture_mangle(int dummy) } } - cli_unlink(cli, "\\mangle_test\\*"); + cli_unlink(cli, "\\mangle_test\\*", aSYSTEM | aHIDDEN); if (!NT_STATUS_IS_OK(cli_rmdir(cli, "\\mangle_test"))) { printf("ERROR: Failed to remove directory\n"); return False; -- cgit