1
0
mirror of https://github.com/samba-team/samba.git synced 2025-10-24 15:33:20 +03:00

ntvfs/cifs: fix the fnum on RAW_RENAME_NTTRANS

metze
This commit is contained in:
Stefan Metzmacher
2008-03-12 17:34:16 +01:00
parent 40563583f7
commit b43f1a53dd

View File

@@ -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);
}