diff options
author | Jeremy Allison <jra@samba.org> | 2009-04-28 16:43:16 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2009-04-28 16:43:16 -0700 |
commit | bd6447dcf26ec217f335784f05df304d45288850 (patch) | |
tree | 6e982a5746e120aa6e97d181e1c13916178d61c3 /source3/libsmb/libsmb_dir.c | |
parent | 06e404f5743d1ccce0f4c51ca3ef97927f801a42 (diff) | |
download | samba-bd6447dcf26ec217f335784f05df304d45288850.tar.gz samba-bd6447dcf26ec217f335784f05df304d45288850.tar.bz2 samba-bd6447dcf26ec217f335784f05df304d45288850.zip |
Convert cli_rename to async.
Jeremy.
Diffstat (limited to 'source3/libsmb/libsmb_dir.c')
-rw-r--r-- | source3/libsmb/libsmb_dir.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/libsmb/libsmb_dir.c b/source3/libsmb/libsmb_dir.c index 508810538f..bc5e35f79b 100644 --- a/source3/libsmb/libsmb_dir.c +++ b/source3/libsmb/libsmb_dir.c @@ -1962,12 +1962,12 @@ SMBC_rename_ctx(SMBCCTX *ocontext, return -1; } - if (!cli_rename(targetcli1, targetpath1, targetpath2)) { + if (!NT_STATUS_IS_OK(cli_rename(targetcli1, targetpath1, targetpath2))) { int eno = SMBC_errno(ocontext, targetcli1); if (eno != EEXIST || !cli_unlink(targetcli1, targetpath2) || - !cli_rename(targetcli1, targetpath1, targetpath2)) { + !NT_STATUS_IS_OK(cli_rename(targetcli1, targetpath1, targetpath2))) { errno = eno; TALLOC_FREE(frame); |