From f3af298e5b1457ba8661fd0e3f5304ad3175f3ba Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 30 Apr 2009 16:57:42 -0700 Subject: Cause cli_close to return an NTSTATUS. Jeremy. --- source3/client/clitar.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'source3/client/clitar.c') diff --git a/source3/client/clitar.c b/source3/client/clitar.c index 3cc1a25dbb..c7f2819c88 100644 --- a/source3/client/clitar.c +++ b/source3/client/clitar.c @@ -1067,8 +1067,9 @@ static int get_file(file_info2 finfo) /* Now close the file ... */ - if (!cli_close(cli, fnum)) { - DEBUG(0, ("Error closing remote file\n")); + if (!NT_STATUS_IS_OK(cli_close(cli, fnum))) { + DEBUG(0, ("Error %s closing remote file\n", + cli_errstr(cli))); return(False); } -- cgit