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.
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] != ':') {