summaryrefslogtreecommitdiff
path: root/source4/ntvfs/cifs/vfs_cifs.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2008-03-13 10:00:57 +1100
committerAndrew Bartlett <abartlet@samba.org>2008-03-13 10:00:57 +1100
commit3d9056aa863c8e1307709bcbbdbd3305e9bfe62f (patch)
tree49224fa1f8e5bc488e01f709015ed37be9b9d898 /source4/ntvfs/cifs/vfs_cifs.c
parent07a7c8fa0d76cb7cb10cc88fb5bbe5439b746d01 (diff)
parent50243cdbbda8a1f14e56c684281a93614aab0103 (diff)
downloadsamba-3d9056aa863c8e1307709bcbbdbd3305e9bfe62f.tar.gz
samba-3d9056aa863c8e1307709bcbbdbd3305e9bfe62f.tar.bz2
samba-3d9056aa863c8e1307709bcbbdbd3305e9bfe62f.zip
Merge branch 'v4-0-test' of git://git.samba.org/samba into 4-0-local
(This used to be commit e9567e39106efb7443ed2c5df3492208b1c1d766)
Diffstat (limited to 'source4/ntvfs/cifs/vfs_cifs.c')
-rw-r--r--source4/ntvfs/cifs/vfs_cifs.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source4/ntvfs/cifs/vfs_cifs.c b/source4/ntvfs/cifs/vfs_cifs.c
index 58183b5e60..3c090b5f5c 100644
--- a/source4/ntvfs/cifs/vfs_cifs.c
+++ b/source4/ntvfs/cifs/vfs_cifs.c
@@ -595,6 +595,13 @@ static NTSTATUS cvfs_rename(struct ntvfs_module_context *ntvfs,
SETUP_PID;
+ if (ren->nttrans.level == RAW_RENAME_NTTRANS) {
+ struct cvfs_file *f;
+ f = ntvfs_handle_get_backend_data(ren->nttrans.in.file.ntvfs, ntvfs);
+ if (!f) return NT_STATUS_INVALID_HANDLE;
+ ren->nttrans.in.file.fnum = f->fnum;
+ }
+
if (!(req->async_states->state & NTVFS_ASYNC_STATE_MAY_ASYNC)) {
return smb_raw_rename(private->tree, ren);
}