From 606edf0f350000978a437ddfb7c23525a16d9854 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 6 May 2009 16:13:42 -0700 Subject: Make cli_setatr async. Jeremy. --- source3/client/clitar.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/client') diff --git a/source3/client/clitar.c b/source3/client/clitar.c index 80f6c81880..ff71924555 100644 --- a/source3/client/clitar.c +++ b/source3/client/clitar.c @@ -604,7 +604,7 @@ static void do_setrattr(char *name, uint16 attr, int set) attr = oldattr & ~attr; } - if (!cli_setatr(cli, name, attr, 0)) { + if (!NT_STATUS_IS_OK(cli_setatr(cli, name, attr, 0))) { DEBUG(1,("setatr failed: %s\n", cli_errstr(cli))); } } @@ -1078,7 +1078,7 @@ static int get_file(file_info2 finfo) /* Now we update the creation date ... */ DEBUG(5, ("Updating creation date on %s\n", finfo.name)); - if (!cli_setatr(cli, finfo.name, finfo.mode, finfo.mtime_ts.tv_sec)) { + if (!NT_STATUS_IS_OK(cli_setatr(cli, finfo.name, finfo.mode, finfo.mtime_ts.tv_sec))) { if (tar_real_noisy) { DEBUG(0, ("Could not set time on file: %s\n", finfo.name)); /*return(False); */ /* Ignore, as Win95 does not allow changes */ -- cgit