From 4cbd0c77e42627c76dda88af5326ef91415a652d Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 5 May 2009 20:59:22 -0700 Subject: Make cli_getatr() async. Jeremy. --- source3/client/clitar.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source3/client') 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; -- cgit