diff options
author | Jeremy Allison <jra@samba.org> | 2009-04-30 16:57:42 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2009-04-30 16:57:42 -0700 |
commit | f3af298e5b1457ba8661fd0e3f5304ad3175f3ba (patch) | |
tree | 43c32ead3cae70fc6d26b01dc2fa844dc93c9388 /source3/utils | |
parent | 384c1aaa8ee8879b6cc4bc34dfc4d3c9fa11667b (diff) | |
download | samba-f3af298e5b1457ba8661fd0e3f5304ad3175f3ba.tar.gz samba-f3af298e5b1457ba8661fd0e3f5304ad3175f3ba.tar.bz2 samba-f3af298e5b1457ba8661fd0e3f5304ad3175f3ba.zip |
Cause cli_close to return an NTSTATUS.
Jeremy.
Diffstat (limited to 'source3/utils')
-rw-r--r-- | source3/utils/net_rpc_printer.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/utils/net_rpc_printer.c b/source3/utils/net_rpc_printer.c index 770d3cac49..8e8103c2e2 100644 --- a/source3/utils/net_rpc_printer.c +++ b/source3/utils/net_rpc_printer.c @@ -254,14 +254,14 @@ NTSTATUS net_copy_fileattr(struct net_context *c, /* closing files */ - if (!cli_close(cli_share_src, fnum_src)) { + if (!NT_STATUS_IS_OK(cli_close(cli_share_src, fnum_src))) { d_fprintf(stderr, "could not close %s on originating server: %s\n", is_file?"file":"dir", cli_errstr(cli_share_src)); nt_status = cli_nt_error(cli_share_src); goto out; } - if (!cli_close(cli_share_dst, fnum_dst)) { + if (!NT_STATUS_IS_OK(cli_close(cli_share_dst, fnum_dst))) { d_fprintf(stderr, "could not close %s on destination server: %s\n", is_file?"file":"dir", cli_errstr(cli_share_dst)); nt_status = cli_nt_error(cli_share_dst); @@ -420,14 +420,14 @@ NTSTATUS net_copy_file(struct net_context *c, /* closing files */ - if (!cli_close(cli_share_src, fnum_src)) { + if (!NT_STATUS_IS_OK(cli_close(cli_share_src, fnum_src))) { d_fprintf(stderr, "could not close file on originating server: %s\n", cli_errstr(cli_share_src)); nt_status = cli_nt_error(cli_share_src); goto out; } - if (is_file && !cli_close(cli_share_dst, fnum_dst)) { + if (is_file && !NT_STATUS_IS_OK(cli_close(cli_share_dst, fnum_dst))) { d_fprintf(stderr, "could not close file on destination server: %s\n", cli_errstr(cli_share_dst)); nt_status = cli_nt_error(cli_share_dst); |