summaryrefslogtreecommitdiff
path: root/source3/client
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2020-06-03 13:00:56 -0700
committerJeremy Allison <jra@samba.org>2020-06-04 17:11:37 +0000
commite2726bed8d9e020174401503124c7a2ae309866e (patch)
treebcfe37b95420ec1cbfe32d8ba862e63e574a9870 /source3/client
parentb34107f98cae1807b0dcacab9788d14e98c4f95d (diff)
downloadsamba-e2726bed8d9e020174401503124c7a2ae309866e.tar.gz
s3: libsmb: Change cli_getattrE() and async versions to return a 32-bit attribute.
Fix all callers. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
Diffstat (limited to 'source3/client')
-rw-r--r--source3/client/client.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source3/client/client.c b/source3/client/client.c
index fe6a06c9cbd..0c20839e27d 100644
--- a/source3/client/client.c
+++ b/source3/client/client.c
@@ -1186,8 +1186,7 @@ static int do_get(const char *rname, const char *lname_in, bool reget)
status = cli_qfileinfo_basic(targetcli, fnum, &attr, &size, NULL, NULL,
NULL, NULL, NULL);
if (!NT_STATUS_IS_OK(status)) {
- uint16_t sattr = 0;
- status = cli_getattrE(targetcli, fnum, &sattr, &size, NULL, NULL,
+ status = cli_getattrE(targetcli, fnum, &attr, &size, NULL, NULL,
NULL);
if(!NT_STATUS_IS_OK(status)) {
d_printf("getattrib: %s\n", nt_errstr(status));
@@ -1196,7 +1195,6 @@ static int do_get(const char *rname, const char *lname_in, bool reget)
}
return 1;
}
- attr = sattr;
}
DEBUG(1,("getting file %s of size %.0f as %s ",