diff options
author | Jeremy Allison <jra@samba.org> | 2009-05-06 16:13:42 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2009-05-06 16:13:42 -0700 |
commit | 606edf0f350000978a437ddfb7c23525a16d9854 (patch) | |
tree | 976f7948635fcc032edc247d0891ae28a5af1ada /source3/client | |
parent | 78fb479325ce7073ab8383ada3903080d12aef91 (diff) | |
download | samba-606edf0f350000978a437ddfb7c23525a16d9854.tar.gz samba-606edf0f350000978a437ddfb7c23525a16d9854.tar.bz2 samba-606edf0f350000978a437ddfb7c23525a16d9854.zip |
Make cli_setatr async.
Jeremy.
Diffstat (limited to 'source3/client')
-rw-r--r-- | source3/client/clitar.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 */ |