summaryrefslogtreecommitdiff
path: root/source3/torture/mangle_test.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2009-04-29 18:26:02 -0700
committerJeremy Allison <jra@samba.org>2009-04-29 18:26:02 -0700
commit370e7209dbafce147a5e9f283d9dcc53c72bce99 (patch)
tree28a832c3f7ef67d79940d1cbbc5bc604b766ddd7 /source3/torture/mangle_test.c
parentedd25980b03c5fac154967e51705ac1cdb8d4091 (diff)
downloadsamba-370e7209dbafce147a5e9f283d9dcc53c72bce99.tar.gz
samba-370e7209dbafce147a5e9f283d9dcc53c72bce99.tar.bz2
samba-370e7209dbafce147a5e9f283d9dcc53c72bce99.zip
Make cli_unlink async.
Jeremy.
Diffstat (limited to 'source3/torture/mangle_test.c')
-rw-r--r--source3/torture/mangle_test.c10
1 files changed, 5 insertions, 5 deletions
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;