summaryrefslogtreecommitdiff
path: root/source3/client
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2009-05-05 20:59:22 -0700
committerJeremy Allison <jra@samba.org>2009-05-05 20:59:22 -0700
commit4cbd0c77e42627c76dda88af5326ef91415a652d (patch)
tree85fa13b4907088ada28d7b96a466d86f08f52dc9 /source3/client
parent1db0b20d8a26fb60299d0ed7553d7a4847aee84f (diff)
downloadsamba-4cbd0c77e42627c76dda88af5326ef91415a652d.tar.gz
samba-4cbd0c77e42627c76dda88af5326ef91415a652d.tar.bz2
samba-4cbd0c77e42627c76dda88af5326ef91415a652d.zip
Make cli_getatr() async.
Jeremy.
Diffstat (limited to 'source3/client')
-rw-r--r--source3/client/clitar.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/client/clitar.c b/source3/client/clitar.c
index fd6c4ccef9..80f6c81880 100644
--- a/source3/client/clitar.c
+++ b/source3/client/clitar.c
@@ -594,7 +594,9 @@ static void do_setrattr(char *name, uint16 attr, int set)
{
uint16 oldattr;
- if (!cli_getatr(cli, name, &oldattr, NULL, NULL)) return;
+ if (!NT_STATUS_IS_OK(cli_getatr(cli, name, &oldattr, NULL, NULL))) {
+ return;
+ }
if (set == ATTRSET) {
attr |= oldattr;