diff options
Diffstat (limited to 'source3/client/client.c')
-rw-r--r-- | source3/client/client.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/source3/client/client.c b/source3/client/client.c index 01d5d90e6b..761d8d39ee 100644 --- a/source3/client/client.c +++ b/source3/client/client.c @@ -1084,8 +1084,9 @@ static int do_get(const char *rname, const char *lname_in, bool reget) } - if (!cli_qfileinfo_basic(targetcli, fnum, - &attr, &size, NULL, NULL, NULL, NULL, NULL) && + 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)); @@ -1699,9 +1700,10 @@ static int do_put(const char *rname, const char *lname, bool reput) if (reput) { status = cli_open(targetcli, targetname, O_RDWR|O_CREAT, DENY_NONE, &fnum); if (NT_STATUS_IS_OK(status)) { - if (!cli_qfileinfo_basic( - targetcli, fnum, NULL, &start, NULL, NULL, - NULL, NULL, NULL) && + if (!NT_STATUS_IS_OK(cli_qfileinfo_basic( + targetcli, fnum, NULL, + &start, NULL, NULL, + NULL, NULL, NULL)) && !NT_STATUS_IS_OK(cli_getattrE(targetcli, fnum, NULL, &start, NULL, NULL, NULL))) { d_printf("getattrib: %s\n",cli_errstr(cli)); return 1; |