summaryrefslogtreecommitdiff
path: root/source3/client
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2009-05-05 16:28:44 -0700
committerJeremy Allison <jra@samba.org>2009-05-05 16:28:44 -0700
commite091fdc5658e65be290ebb3b62a1bdf517781a65 (patch)
tree1687ed661275a297b3a87d589039f3729302cdc6 /source3/client
parentd52172654cf248b5b772c34383c176c73438d9d2 (diff)
downloadsamba-e091fdc5658e65be290ebb3b62a1bdf517781a65.tar.gz
samba-e091fdc5658e65be290ebb3b62a1bdf517781a65.tar.bz2
samba-e091fdc5658e65be290ebb3b62a1bdf517781a65.zip
Make cli_getattrE async.
Jeremy.
Diffstat (limited to 'source3/client')
-rw-r--r--source3/client/client.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/client/client.c b/source3/client/client.c
index d3cf08cce8..9c53472840 100644
--- a/source3/client/client.c
+++ b/source3/client/client.c
@@ -1060,8 +1060,8 @@ static int do_get(const char *rname, const char *lname_in, bool reget)
if (!cli_qfileinfo(targetcli, fnum,
&attr, &size, NULL, NULL, NULL, NULL, NULL) &&
- !cli_getattrE(targetcli, fnum,
- &attr, &size, 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;
}
@@ -1639,7 +1639,7 @@ static int do_put(const char *rname, const char *lname, bool reput)
status = cli_open(targetcli, targetname, O_RDWR|O_CREAT, DENY_NONE, &fnum);
if (NT_STATUS_IS_OK(status)) {
if (!cli_qfileinfo(targetcli, fnum, NULL, &start, NULL, NULL, NULL, NULL, NULL) &&
- !cli_getattrE(targetcli, fnum, NULL, &start, 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;
}