summaryrefslogtreecommitdiff
path: root/source4/ntvfs
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2008-03-12 17:34:16 +0100
committerStefan Metzmacher <metze@samba.org>2008-03-12 17:35:03 +0100
commit7cdf28ebaccb41a23c2986b123624b238effcfda (patch)
treed21fa5f5160502524852725a6fc2de77828706e8 /source4/ntvfs
parentf533d6d8a255298ba191daa1a2c41c6228c85aa4 (diff)
downloadsamba-7cdf28ebaccb41a23c2986b123624b238effcfda.tar.gz
samba-7cdf28ebaccb41a23c2986b123624b238effcfda.tar.bz2
samba-7cdf28ebaccb41a23c2986b123624b238effcfda.zip
ntvfs/cifs: fix the fnum on RAW_RENAME_NTTRANS
metze (This used to be commit b43f1a53dd185cc51a3fb8a18e311abb77c2a7c9)
Diffstat (limited to 'source4/ntvfs')
-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);
}