summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorIra Cooper <samba@ira.wakeful.net>2010-06-01 17:09:29 -0700
committerJeremy Allison <jra@samba.org>2010-06-01 17:09:29 -0700
commite799de256e418f011a042f999904872fecae4011 (patch)
tree67818e80716f2735970a69851fad52df80019f94 /source3/smbd
parente9ff32c6c3c270818f2341d85d2ba193c4e99864 (diff)
downloadsamba-e799de256e418f011a042f999904872fecae4011.tar.gz
samba-e799de256e418f011a042f999904872fecae4011.tar.bz2
samba-e799de256e418f011a042f999904872fecae4011.zip
SMB2: Fix rename on Windows 7.
This removes some code Jeremy (jra) suspected was bad. It turns out that the command window rename command will not work with the offending code in place. With it removed the bug is gone, and rename works.
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/trans2.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c
index 2c0bca939d..f69cefe66b 100644
--- a/source3/smbd/trans2.c
+++ b/source3/smbd/trans2.c
@@ -6003,14 +6003,6 @@ static NTSTATUS smb2_file_rename_information(connection_struct *conn,
return status;
}
- /* Ok, this looks wrong to me, but appears to
- * be how SMB2 renames work. CHECK WITH Microsoft !
- * jra.
- */
- if (fsp->oplock_type != NO_OPLOCK) {
- return NT_STATUS_SHARING_VIOLATION;
- }
-
if (fsp->base_fsp) {
/* newname must be a stream name. */
if (newname[0] != ':') {