diff options
author | Volker Lendecke <vl@samba.org> | 2010-10-23 22:37:16 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2010-10-24 11:39:30 +0200 |
commit | c095809c0464cd174e0993d8c32434d6f3733342 (patch) | |
tree | fa252edc75dc3c39c8668232b85fc52a5e11ba8f /source3/client | |
parent | d864b1bace0038b86cb393ca811dcce2e938bebd (diff) | |
download | samba-c095809c0464cd174e0993d8c32434d6f3733342.tar.gz samba-c095809c0464cd174e0993d8c32434d6f3733342.tar.bz2 samba-c095809c0464cd174e0993d8c32434d6f3733342.zip |
s3: Convert cli_qfileinfo_basic to cli_qfileinfo
Diffstat (limited to 'source3/client')
-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; |