summaryrefslogtreecommitdiff
path: root/source3/client
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
parent8bc88aae5d44e0a6bc6157745edc3a83bd740ff7 (diff)
downloadsamba-502f47c7c07b8075fb28a8591acd1e43f7708f54.tar.gz
samba-502f47c7c07b8075fb28a8591acd1e43f7708f54.tar.bz2
samba-502f47c7c07b8075fb28a8591acd1e43f7708f54.zip
Make cli_chkpath async.
Jeremy
Diffstat (limited to 'source3/client')
-rw-r--r--source3/client/client.c6
-rw-r--r--source3/client/clitar.c2
2 files changed, 4 insertions, 4 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 */
diff --git a/source3/client/clitar.c b/source3/client/clitar.c
index 7512583e19..fd375769e4 100644
--- a/source3/client/clitar.c
+++ b/source3/client/clitar.c
@@ -554,7 +554,7 @@ static bool ensurepath(const char *fname)
while (p) {
safe_strcat(partpath, p, strlen(fname) + 1);
- if (!cli_chkpath(cli, partpath)) {
+ if (!NT_STATUS_IS_OK(cli_chkpath(cli, partpath))) {
if (!NT_STATUS_IS_OK(cli_mkdir(cli, partpath))) {
SAFE_FREE(partpath);
SAFE_FREE(ffname);