diff options
author | Jeremy Allison <jra@samba.org> | 2007-05-22 23:56:47 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:22:44 -0500 |
commit | 918b6ea082562dd269c5f23941adb2f47a61dd59 (patch) | |
tree | 8bb53a2034049e53bd82ebf282136fd411729586 /source3/smbd | |
parent | 828cb240047506afd292a613742ff88ee994896e (diff) | |
download | samba-918b6ea082562dd269c5f23941adb2f47a61dd59.tar.gz samba-918b6ea082562dd269c5f23941adb2f47a61dd59.tar.bz2 samba-918b6ea082562dd269c5f23941adb2f47a61dd59.zip |
r23088: Fix rename for cifsfs client. This may be needed for
3.0.25a.
Jeremy.
(This used to be commit 02e4f6b0f1f1a1cc6bfe5fed7866eb5b18ab87e0)
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/reply.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index 364f571f4b..fb042a6b1d 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -4310,10 +4310,10 @@ NTSTATUS rename_internals_fsp(connection_struct *conn, files_struct *fsp, pstrin return NT_STATUS_OBJECT_NAME_COLLISION; } - status = can_rename(conn,newname,attrs,&sbuf); + status = can_rename(conn,fsp->fsp_name,attrs,&sbuf); if (dest_exists && !NT_STATUS_IS_OK(status)) { - DEBUG(3,("rename_internals: Error %s rename %s -> %s\n", + DEBUG(3,("rename_internals_fsp: Error %s rename %s -> %s\n", nt_errstr(status), fsp->fsp_name,newname)); if (NT_STATUS_EQUAL(status,NT_STATUS_SHARING_VIOLATION)) status = NT_STATUS_ACCESS_DENIED; |