summaryrefslogtreecommitdiff
path: root/source3/client
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2009-04-21 05:52:34 -0700
committerJeremy Allison <jra@samba.org>2009-04-21 05:52:34 -0700
commitdfc79de607e94179114a8e1d0b0e56117f34595b (patch)
tree4e717d763a1c19f0cb1926804e6f977d56a0cec5 /source3/client
parent4024abb0a80e5ec10dd2f86b378bcea89b919050 (diff)
downloadsamba-dfc79de607e94179114a8e1d0b0e56117f34595b.tar.gz
samba-dfc79de607e94179114a8e1d0b0e56117f34595b.tar.bz2
samba-dfc79de607e94179114a8e1d0b0e56117f34595b.zip
Make cli_mkdir async. Change it to return NTSTATUS.
Jeremy.
Diffstat (limited to 'source3/client')
-rw-r--r--source3/client/client.c2
-rw-r--r--source3/client/clitar.c2
2 files changed, 2 insertions, 2 deletions
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)));