summaryrefslogtreecommitdiff
path: root/source3/libsmb/libsmb_dir.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2009-04-28 16:43:16 -0700
committerJeremy Allison <jra@samba.org>2009-04-28 16:43:16 -0700
commitbd6447dcf26ec217f335784f05df304d45288850 (patch)
tree6e982a5746e120aa6e97d181e1c13916178d61c3 /source3/libsmb/libsmb_dir.c
parent06e404f5743d1ccce0f4c51ca3ef97927f801a42 (diff)
downloadsamba-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.c4
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);