summaryrefslogtreecommitdiff
path: root/source3/client/client.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2009-04-22 06:46:42 -0700
committerJeremy Allison <jra@samba.org>2009-04-22 06:46:42 -0700
commit502f47c7c07b8075fb28a8591acd1e43f7708f54 (patch)
treee49e9c4a5f8f4f5faef07e1db87934b262d7bad0 /source3/client/client.c
parent8bc88aae5d44e0a6bc6157745edc3a83bd740ff7 (diff)
downloadsamba-502f47c7c07b8075fb28a8591acd1e43f7708f54.tar.gz
samba-502f47c7c07b8075fb28a8591acd1e43f7708f54.tar.bz2
samba-502f47c7c07b8075fb28a8591acd1e43f7708f54.zip
Make cli_chkpath async.
Jeremy
Diffstat (limited to 'source3/client/client.c')
-rw-r--r--source3/client/client.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/client/client.c b/source3/client/client.c
index 54ff755ed3..151f7460fc 100644
--- a/source3/client/client.c
+++ b/source3/client/client.c
@@ -437,7 +437,7 @@ static int do_cd(const char *new_dir)
goto out;
}
- if (!cli_chkpath(targetcli, targetpath)) {
+ if (!NT_STATUS_IS_OK(cli_chkpath(targetcli, targetpath))) {
d_printf("cd %s: %s\n", new_cd, cli_errstr(targetcli));
client_set_cur_dir(saved_dir);
goto out;
@@ -1482,7 +1482,7 @@ static int cmd_mkdir(void)
if (!ddir2) {
return 1;
}
- if (!cli_chkpath(targetcli, ddir2)) {
+ if (!NT_STATUS_IS_OK(cli_chkpath(targetcli, ddir2))) {
do_mkdir(ddir2);
}
ddir2 = talloc_asprintf_append(ddir2, "%s", CLI_DIRSEP_STR);
@@ -1956,7 +1956,7 @@ static int cmd_mput(void)
break;
}
normalize_name(rname);
- if (!cli_chkpath(cli, rname) &&
+ if (!NT_STATUS_IS_OK(cli_chkpath(cli, rname)) &&
!do_mkdir(rname)) {
DEBUG (0, ("Unable to make dir, skipping..."));
/* Skip the directory */