summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorBjörn Baumbach <bb@sernet.de>2011-01-20 14:38:30 +0100
committerStefan Metzmacher <metze@samba.org>2011-01-25 11:41:53 +0100
commit07ccc2905dc5d0d74dc688ff830f504ea9665029 (patch)
tree69c932cbf5d2674b4c273dc6a6b59f5f9bc58c16 /source3
parent5d8ada549e629cfe53ed973d66f5fcf0a3bd0a8c (diff)
downloadsamba-07ccc2905dc5d0d74dc688ff830f504ea9665029.tar.gz
samba-07ccc2905dc5d0d74dc688ff830f504ea9665029.tar.bz2
samba-07ccc2905dc5d0d74dc688ff830f504ea9665029.zip
s3-smbclient: Fix cli_errstr() usage (part of bug #7864)
Convert cli_errstr() to nt_errstr() Signed-off-by: Stefan Metzmacher <metze@samba.org> Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Tue Jan 25 11:41:53 CET 2011 on sn-devel-104
Diffstat (limited to 'source3')
-rw-r--r--source3/client/client.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/source3/client/client.c b/source3/client/client.c
index cd9150d277..3e48b01079 100644
--- a/source3/client/client.c
+++ b/source3/client/client.c
@@ -1108,13 +1108,15 @@ static int do_get(const char *rname, const char *lname_in, bool reget)
}
- if (!NT_STATUS_IS_OK(cli_qfileinfo_basic(
- targetcli, fnum, &attr, &size, NULL, NULL,
- NULL, NULL, NULL)) &&
- !NT_STATUS_IS_OK(cli_getattrE(targetcli, fnum,
- &attr, &size, NULL, NULL, NULL))) {
- d_printf("getattrib: %s\n",cli_errstr(targetcli));
- return 1;
+ status = cli_qfileinfo_basic(targetcli, fnum, &attr, &size, NULL, NULL,
+ NULL, NULL, NULL);
+ if (!NT_STATUS_IS_OK(status)) {
+ status = cli_getattrE(targetcli, fnum, &attr, &size, NULL, NULL,
+ NULL);
+ if(!NT_STATUS_IS_OK(status)) {
+ d_printf("getattrib: %s\n", nt_errstr(status));
+ return 1;
+ }
}
DEBUG(1,("getting file %s of size %.0f as %s ",