From dfc79de607e94179114a8e1d0b0e56117f34595b Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 21 Apr 2009 05:52:34 -0700 Subject: Make cli_mkdir async. Change it to return NTSTATUS. Jeremy. --- source3/client/client.c | 2 +- source3/client/clitar.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/client') diff --git a/source3/client/client.c b/source3/client/client.c index fcb9b27f1f..d74de35bc5 100644 --- a/source3/client/client.c +++ b/source3/client/client.c @@ -1389,7 +1389,7 @@ static bool do_mkdir(const char *name) return false; } - if (!cli_mkdir(targetcli, targetname)) { + if (!NT_STATUS_IS_OK(cli_mkdir(targetcli, targetname))) { d_printf("%s making remote directory %s\n", cli_errstr(targetcli),name); return false; diff --git a/source3/client/clitar.c b/source3/client/clitar.c index c9f3e87c4d..7512583e19 100644 --- a/source3/client/clitar.c +++ b/source3/client/clitar.c @@ -555,7 +555,7 @@ static bool ensurepath(const char *fname) safe_strcat(partpath, p, strlen(fname) + 1); if (!cli_chkpath(cli, partpath)) { - if (!cli_mkdir(cli, partpath)) { + if (!NT_STATUS_IS_OK(cli_mkdir(cli, partpath))) { SAFE_FREE(partpath); SAFE_FREE(ffname); DEBUG(0, ("Error mkdir %s\n", cli_errstr(cli))); -- cgit