diff options
author | Jeremy Allison <jra@samba.org> | 2009-04-22 06:46:42 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2009-04-22 06:46:42 -0700 |
commit | 502f47c7c07b8075fb28a8591acd1e43f7708f54 (patch) | |
tree | e49e9c4a5f8f4f5faef07e1db87934b262d7bad0 /source3/utils | |
parent | 8bc88aae5d44e0a6bc6157745edc3a83bd740ff7 (diff) | |
download | samba-502f47c7c07b8075fb28a8591acd1e43f7708f54.tar.gz samba-502f47c7c07b8075fb28a8591acd1e43f7708f54.tar.bz2 samba-502f47c7c07b8075fb28a8591acd1e43f7708f54.zip |
Make cli_chkpath async.
Jeremy
Diffstat (limited to 'source3/utils')
-rw-r--r-- | source3/utils/net_rpc_printer.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/utils/net_rpc_printer.c b/source3/utils/net_rpc_printer.c index 477ddf7f26..ea613e7886 100644 --- a/source3/utils/net_rpc_printer.c +++ b/source3/utils/net_rpc_printer.c @@ -400,7 +400,7 @@ NTSTATUS net_copy_file(struct net_context *c, } - if (!is_file && !cli_chkpath(cli_share_dst, dst_name)) { + if (!is_file && !NT_STATUS_IS_OK(cli_chkpath(cli_share_dst, dst_name))) { /* creating dir */ DEBUGADD(3,("creating dir %s on the destination server\n", @@ -412,7 +412,7 @@ NTSTATUS net_copy_file(struct net_context *c, nt_status = NT_STATUS_NO_SUCH_FILE; } - if (!cli_chkpath(cli_share_dst, dst_name)) { + if (!NT_STATUS_IS_OK(cli_chkpath(cli_share_dst, dst_name))) { d_fprintf(stderr, "cannot check for directory %s: %s\n", dst_name, cli_errstr(cli_share_dst)); goto out; @@ -561,7 +561,7 @@ static NTSTATUS check_arch_dir(struct cli_state *cli_share, const char *short_ar nt_status = NT_STATUS_NO_SUCH_FILE; } - if (!cli_chkpath(cli_share, dir)) { + if (!NT_STATUS_IS_OK(cli_chkpath(cli_share, dir))) { d_fprintf(stderr, "cannot check %s: %s\n", dir, cli_errstr(cli_share)); goto out; |