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/client/client.c | |
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/client/client.c')
-rw-r--r-- | source3/client/client.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/client/client.c b/source3/client/client.c index becb066153..d3cf08cce8 100644 --- a/source3/client/client.c +++ b/source3/client/client.c @@ -1078,7 +1078,7 @@ static int do_get(const char *rname, const char *lname_in, bool reget) return 1; } - if (!cli_close(targetcli, fnum)) { + if (!NT_STATUS_IS_OK(cli_close(targetcli, fnum))) { d_printf("Error %s closing remote file\n",cli_errstr(cli)); rc = 1; } @@ -1690,7 +1690,7 @@ static int do_put(const char *rname, const char *lname, bool reput) d_fprintf(stderr, "cli_push returned %s\n", nt_errstr(status)); } - if (!cli_close(targetcli, fnum)) { + if (!NT_STATUS_IS_OK(cli_close(targetcli, fnum))) { d_printf("%s closing remote file %s\n",cli_errstr(cli),rname); x_fclose(f); return 1; @@ -2459,7 +2459,7 @@ static int cmd_close(void) fnum = atoi(buf); /* We really should use the targetcli here.... */ - if (!cli_close(cli, fnum)) { + if (!NT_STATUS_IS_OK(cli_close(cli, fnum))) { d_printf("close %d: %s\n", fnum, cli_errstr(cli)); return 1; } |