From dc5c7b7f98345621f4cf1b9992ebbe9144e14ebb Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 10 Jun 2009 11:58:00 -0700 Subject: Make ctemp async. Fix the test to pass against W2K3. Jeremy. --- source3/torture/torture.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source3/torture') diff --git a/source3/torture/torture.c b/source3/torture/torture.c index 056b74adea..baa8a15da4 100644 --- a/source3/torture/torture.c +++ b/source3/torture/torture.c @@ -3908,8 +3908,7 @@ static bool run_opentest(int dummy) printf("testing ctemp\n"); - fnum1 = cli_ctemp(cli1, "\\", &tmp_path); - if (fnum1 == (uint16_t)-1) { + if (!NT_STATUS_IS_OK(cli_ctemp(cli1, talloc_tos(), "\\", &fnum1, &tmp_path))) { printf("ctemp failed (%s)\n", cli_errstr(cli1)); return False; } -- cgit